【问题标题】:How to show mapview location in listview item?如何在列表视图项中显示地图视图位置?
【发布时间】:2016-02-26 17:26:01
【问题描述】:

我想在 listview 中显示带有客户确切位置的订单列表。

【问题讨论】:

标签: android listview android-mapview


【解决方案1】:

这可能会对您有所帮助。将其与图像相同,并将图像 url 替换为此 url 并传递给您 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);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-15
    • 1970-01-01
    • 2020-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-20
    相关资源
    最近更新 更多