为什么导航抽屉“闪烁”与GoogleMap& Googlemap Extensions的主要内容

时间:2013-07-29 20:33:48

标签: android android-navigation

我有一个以谷歌地图为主要内容的Android应用程序 该应用程序使用导航抽屉android.support.v4.widget.DrawerLayout
我已经按照Android开发人员的例子“创建导航抽屉” 当导航抽屉打开时,最初所有内容都按预期显示,然后在几秒钟后,可见主内容上的阴影开始“闪烁”,例如,消失并重新出现 为什么它会这样?。 有没有人经历过同样的行为? 的更新
我已经对此进行了更多的调查,并且相信之间存在兼容性问题 导航抽屉和谷歌地图扩展片段
pl.mg6.android.maps.extensions.SupportMapFragment 我开始使用谷歌提供的导航抽屉示例(允许您在我们的太阳系中选择不同行星图像的那个) 然后我简单地更换片段以显示行星的图像...

fragment android:id="@+id/map"
android:name="pl.mg6.android.maps.extensions.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"

现在,当我打开导航抽屉时,地图的可见部分最初会被遮挡 较暗(当导航抽屉打开时应该这样做)
但在几秒钟内,阴影消失并开始闪烁 我需要做些什么来让阴影保持不变而不是一直不断下降? 更新2
与完全相同的“闪烁”发生在 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"

0 个答案:

没有答案