Android活动在更改选项卡时显示黑屏

Android活动在更改选项卡时显示黑屏,android,Android,当我更改选项卡时,选项卡子活动背景将变为黑屏。我在note(Nexus7)和tablet(Smasung Galaxy Tab)中遇到了这个问题。请分享一些解决方法。 首先,我点击了第一个标签。此时,活动正在加载中。然后我去了第二页。然后我再次点击了第一个标签。此时屏幕变黑。基本上布局bg没有加载 <FrameLayout android:layout_width="match_parent" android:layout_heigh

当我更改选项卡时,选项卡子活动背景将变为黑屏。我在note(Nexus7)和tablet(Smasung Galaxy Tab)中遇到了这个问题。请分享一些解决方法。 首先,我点击了第一个标签。此时,活动正在加载中。然后我去了第二页。然后我再次点击了第一个标签。此时屏幕变黑。基本上布局bg没有加载

            <FrameLayout android:layout_width="match_parent"
                android:layout_height="match_parent" android:id="@android:id/tabcontent">
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab1" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab2" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab3" />
            </FrameLayout>
        </RelativeLayout>
    </TabHost>


</LinearLayout>

提前感谢。

我在tab_host.XML中设置的背景图像与我在其他布局中使用的图像相同

            <FrameLayout android:layout_width="match_parent"
                android:layout_height="match_parent" android:id="@android:id/tabcontent">
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab1" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab2" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab3" />
            </FrameLayout>
        </RelativeLayout>
    </TabHost>


</LinearLayout>

            <FrameLayout android:layout_width="match_parent"
                android:layout_height="match_parent" android:id="@android:id/tabcontent">
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab1" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab2" />
                <LinearLayout android:layout_width="match_parent"
                    android:layout_height="match_parent" android:id="@+id/tab3" />
            </FrameLayout>
        </RelativeLayout>
    </TabHost>


</LinearLayout>


两个活动是否使用相同的布局?我使用的布局没有不同。。