Mapview 无效列表视图中的异常
当初始化地图视图时,地图视图可以显示地图中的一些点。 当滚动列表时,地图视图将显示地图中的所有点。 谁能告诉我如何使地图视图显示地图中的所有点? 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论