Android TabHostFragment中的SupportMapFragment具有难看的黑色背景
我的冰淇淋三明治装置有问题。我使用带有支持图片段的选项卡主机片段,当我在选项卡之间切换时,支持图片段下有黑色背景。我怎样才能修好它Android TabHostFragment中的SupportMapFragment具有难看的黑色背景,android,google-maps,tabs,maps,Android,Google Maps,Tabs,Maps,我的冰淇淋三明治装置有问题。我使用带有支持图片段的选项卡主机片段,当我在选项卡之间切换时,支持图片段下有黑色背景。我怎样才能修好它 <android.support.v4.app.FragmentTabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_paren
<android.support.v4.app.FragmentTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TabWidget
android:id="@android:id/tabs"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="#fff"
android:layout_weight="0"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<FrameLayout
android:id="@+id/realtabcontent"
android:background="#fff"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:color="@android:color/transparent" />
</FrameLayout>
</LinearLayout>
</android.support.v4.app.FragmentTabHost>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map_host"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff">
<fragment
android:id="@+id/map"
android:name="com.example.user.tabhost_blackbackground.NiceFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent" />
</FrameLayout>
我尝试创建透明的FrameLayout,但没有结果,我尝试使用NiceSupportMapFragment,但也没有结果