我有一个以 GoogleMap 为主要内容的 android 应用程序。
该应用程序使用了一个导航抽屉android.support.v4.widget.DrawerLayout
,我遵循了 android 开发人员示例“创建导航抽屉”。
当导航抽屉打开时,最初一切看起来都像预期的那样,然后几秒钟后可见主要内容上的阴影开始“闪烁”,例如消失并重新出现
为什么它会这样?
有没有人经历过同样的行为?
更新
我对此进行了更多调查,并认为
导航抽屉和谷歌地图扩展片段之间存在兼容性问题
pl.mg6.android.maps.extensions.SupportMapFragment
我从 google 提供的导航抽屉示例开始(允许您选择太阳系中行星的不同图像的示例),
然后我简单地替换了用于显示行星图像的片段...
现在当我打开导航抽屉 地图的可见部分最初会
变暗(当导航抽屉打开时应该这样做)
,但在几秒钟内阴影消失并开始闪烁。
我该怎么做才能让阴影保持不变而不消失?更新 2
完全相同的“闪烁”发生在
fragment android:id="@+id/map"
android:name="pl.mg6.android.maps.extensions.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
问问题
735 次