由网友(半夏半暖半倾城)分享简介:我与谷歌地图片段的错误。片段放在我的活动内,当我打开抽屉式导航栏则显示在地图片段后面。这是奇怪,因为导航抽屉布局中的片段的顶部。I have a bug with the google maps fragment. The fragment is placed inside my activity and when...
我与谷歌地图片段的错误。片段放在我的活动内,当我打开抽屉式导航栏则显示在地图片段后面。这是奇怪,因为导航抽屉布局中的片段的顶部。
I have a bug with the google maps fragment. The fragment is placed inside my activity and when i open the navigation drawer it is displayed behind the maps fragment. that's strange because the navigation drawer is on top of the fragment in the layout.
同样的问题与CameraView。
Same problem with the CameraView.
在Android 2.3及检测到的问题有些
problem detected on android 2.3 and some
推荐答案
原因:CameraView和MapFragment是SurfaceViews
Reason: The CameraView and the MapFragment are SurfaceViews.
解决方案:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/palce_map_here"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
<FrameLayout
android:id="@+id/bugfixview"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@android:color/transparent"/>
</RelativeLayout>
画一个透明的视图上表面观之上。
draw a transparent view on top of the surface view.
相关推荐
最新文章