android - How to change tab widget text color using style? -
my app use actionbarsherlock.
app theme theme.sherlock.light.darkactionbar (like holo.light.darkactionbar)
and need 2-depth tab (1-depth tab action bar tab), make tabhost , tabwidget.
layout.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"> <framelayout android:id="@android:id/tabcontent" android:visibility="invisible" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0"/> <framelayout android:id="@+android:id/realtabcontent" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"/> <tabwidget android:id="@android:id/tabs" **style="@style/tabwidget** android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0"/> </linearlayout> </tabhost>
styles.xml
<style name="tabwidget"> <item name="android:background">@color/holo_gray_dark</item> *==> works fine light(default)->dark* <item name="android:textcolor">@color/android_white</item> <item name="android:textcolorhint">@color/android_white</item> <item name="android:textcolorhighlight">@color/android_white</item> <item name="android:textcolorlink">@color/android_white</item> *==> these did not work...* </style>
in result, tab widget dark backgrround , dark text.
how change tab widget dark style?
Comments
Post a Comment