我已经安装了我的tabhost背景颜色,但它不工作。Android - tabhost不改变背景颜色
styles.xml
@style/ActionBarTabStyle
@style/ActionBarTabStyle
@drawable/tab_bg_selector
@drawable/tab_bg_selector
tab_bg_selector.xml
bottom_tabs.xml
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1" />
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0" />
恳求建议。谢谢。
+0
您使用AppCompat库吗? –
+0
是的,编译'com.android.support:appcompat-v7:22.1.0' –
+0
你可以发布tabvew –