android - 当我将 map 放入 Scrollview 时,它会水平移动但不能垂直移动

标签 android map scrollview

<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 ? 我怎样才能做到这一点? 提前致谢....

最佳答案

本站的其他解决方案:

MapView inside a ScrollView?

ScrollView is catching touch event for google map

对于android map v2,请关注this solution

关于android - 当我将 map 放入 Scrollview 时,它会水平移动但不能垂直移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16162507/

相关文章:

ios - 从任何位置到我当前位置获取 ETA(预计到达时间)的正确方法是什么

java - ScrollView 和 CustomView 滚动

ios - 在 ScrollView SwiftUI 中添加时列表隐藏

c# - Xamarin.Forms 上的混合固定元素和可滚动元素

android - 如何使 FragmentTabHost 中的特定选项卡具有多个 fragment 导航,例如 tabgroupactivity

android - GridView 内的项目在上下滚动时再次加载

android - 如何动画状态栏和工具栏的颜色变化(就像新的日历应用程序一样)

javascript - 是否可以从后退按钮事件调用ons-sliding-menu组件的closeMenu方法?

javascript - map 存储中的 map

scala - 使用 Scala 案例类作为事实上的映射