Android FragmentTabHost失败了

时间:2014-08-06 12:03:01

标签: android tabs tabwidget

我有一个fragmenttab主机,有一个标签小部件和一个这样的framelayout:

<android.support.v4.app.FragmentTabHost 
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+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="@+id/tabswidget"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="10"
        android:orientation="horizontal" />

    <FrameLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="90" />

</LinearLayout>

我在framelayout中的标签下方加载了“内容”。 我遇到的问题是,当我将手机设置为横向时,我的内容顶部是“隐藏”的。

我试图在我的标签中设置保证金,但没有任何作用......

0 个答案:

没有答案
相关问题