ActionBarSherlock标签页面主题问题

时间:2013-04-22 05:20:52

标签: android tabs actionbarsherlock

我使用FragmentTabsPager作为标签寻呼机。我只是删除了行setTheme(SampleList.THEME);但我有一个主题问题(标签高度和背景颜色)。是因为 SampleList.THEME

enter image description here

的xml:

<TabHost
    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:layout_weight="0"/>

        <android.support.v4.view.ViewPager
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"/>

    </LinearLayout>
</TabHost>

1 个答案:

答案 0 :(得分:0)

设置目标sdk版本

    <uses-sdk
    android:minSdkVersion="4"
    android:targetSdkVersion="10" />