<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/below_layout_1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/layout_background" >
<com.google.android.maps.MapView
android:id="@+id/mpDelivery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="true" >
</com.google.android.maps.MapView>
<LinearLayout
android:id="@+id/zoom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" >
</LinearLayout>
</LinearLayout></ScrollView>
这是我的 XML 文件。 所以当我点击 map 时,它水平移动意味着从左到右。有没有办法在 ScrollView 内双向滚动 MapView ? 我怎样才能做到这一点? 提前致谢....
最佳答案
关于android - 当我将 map 放入 Scrollview 时,它会水平移动但不能垂直移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16162507/