Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android TabHostFragment中的SupportMapFragment具有难看的黑色背景_Android_Google Maps_Tabs_Maps - Fatal编程技术网

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,但也没有结果