Surendar D
Surendar D

Reputation: 5644

How to show mapview location in listview item?

I want to show list of orders with exact location of the customer in listview.enter image description here

Upvotes: 1

Views: 428

Answers (1)

Anand Kumar Jha
Anand Kumar Jha

Reputation: 614

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);

Upvotes: 1

Related Questions