【问题标题】:mapview fragment inside scrollivew flickeringscrollivew内的mapview片段闪烁
【发布时间】:2017-11-03 10:33:53
【问题描述】:

在主布局中,我在滚动视图中使用了 MapFragment。起初一切似乎都很完美,但是当我开始在滚动视图中滚动时,地图出现问题,地图闪烁并显示背景活动布局,低于 4.4 显示主屏幕布局。见下面是 XML 代码。

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
                        android:id="@+id/map"
                        android:name="com.google.android.gms.maps.SupportMapFragment"
                        android:layout_width="match_parent"
                        android:layout_height="150dp"/>

【问题讨论】:

    标签: google-maps android-fragments scrollview android-scrollview supportmapfragment


    【解决方案1】:

    在你的清单文件中设置这个标签 android:hardwareAccelerated="true"

    【讨论】:

    • 无法正常工作
    猜你喜欢
    • 1970-01-01
    • 2013-07-17
    • 2018-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多