Mapview 无效列表视图中的异常

发布于 2025-01-02 04:58:09 字数 955 浏览 4 评论 0原文

当初始化地图视图时,地图视图可以显示地图中的一些点。 当滚动列表时,地图视图将显示地图中的所有点。 谁能告诉我如何使地图视图显示地图中的所有点? xml中的代码如下:

<RelativeLayout
    android:id="@+id/relativeLayout3"
    android:layout_width="fill_parent"
    android:layout_height="230dp"
    android:layout_below="@+id/relativeLayout2"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:layout_marginTop="10dp"
    android:background="@drawable/pic_bg" >

    <com.google.android.maps.MapView
        android:id="@+id/trip_allspots_map"
        android:layout_width="fill_parent"
        android:layout_height="200dp"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/relativeLayout2"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="10dp"
        android:apiKey="@string/harold_debug_apikey"
        android:clickable="true" />
</RelativeLayout>

when init the mapview the mapview can show some of the points in map.
when scroll the list the mapview will show all of the points in map.
can anyone tell me how to make the mapview show all of the points in map?
the code in xml is as below:

<RelativeLayout
    android:id="@+id/relativeLayout3"
    android:layout_width="fill_parent"
    android:layout_height="230dp"
    android:layout_below="@+id/relativeLayout2"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:layout_marginTop="10dp"
    android:background="@drawable/pic_bg" >

    <com.google.android.maps.MapView
        android:id="@+id/trip_allspots_map"
        android:layout_width="fill_parent"
        android:layout_height="200dp"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/relativeLayout2"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="10dp"
        android:apiKey="@string/harold_debug_apikey"
        android:clickable="true" />
</RelativeLayout>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文