I want to show list of orders with exact location of the customer in listview.
Asked
Active
Viewed 418 times
1

Punit Sharma
- 2,951
- 1
- 20
- 35

Surendar D
- 5,554
- 4
- 36
- 38
-
I advice you to use `CardView` like list item for these purposes. – Denis Sologub Feb 26 '16 at 05:47
-
use static map api try link here: https://developers.google.com/maps/documentation/static-maps/intro – TUSHAR Feb 26 '16 at 06:18
-
Possible duplicate of [Android - MapView contained within a Listview](http://stackoverflow.com/questions/2961275/android-mapview-contained-within-a-listview) – Aditya Vyas-Lakhan Feb 26 '16 at 06:35
-
check this https://github.com/googlemaps/android-samples/tree/master/ApiDemos – Aditya Vyas-Lakhan Feb 26 '16 at 06:40
1 Answers
1
This may help you. Use it same as image and replace image url with this url and pass you lat/long.
AQuery aq = new AQuery(activity);
String url = "http://maps.googleapis.com/maps/api/staticmap?zoom=12&size=560x370&markers=size:mid|color:red|"
+ item.getLattitude()
+ ","
+ item.getLongitude()
+ "&sensor=false";
aq.id(ImageView).image(url, true, true, 0,
0, null, AQuery.FADE_IN);

Anand Kumar Jha
- 614
- 9
- 23