Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the tab text color of ActionBarSherlock?
    primarykey
    data
    text
    <p>I have tried multiple different ways to change the tab text color to actionbarshelock to white and it simply does not work. Here is my styles.xml file.</p> <p></p> <pre><code>&lt;style name="Theme.Test" parent="@style/Theme.Sherlock.Light"&gt; &lt;item name="actionBarItemBackground"&gt;@drawable/selectable_background_test&lt;/item&gt; &lt;item name="popupMenuStyle"&gt;@style/PopupMenu.Test&lt;/item&gt; &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView.Test&lt;/item&gt; &lt;item name="actionBarTabStyle"&gt;@style/ActionBarTabStyle.Test&lt;/item&gt; &lt;item name="actionDropDownStyle"&gt;@style/DropDownNav.Test&lt;/item&gt; &lt;item name="actionBarStyle"&gt;@style/ActionBar.Solid.Test&lt;/item&gt; &lt;item name="actionModeBackground"&gt;@drawable/cab_background_top_test&lt;/item&gt; &lt;item name="actionModeSplitBackground"&gt;@drawable/cab_background_bottom_test&lt;/item&gt; &lt;item name="actionModeCloseButtonStyle"&gt;@style/ActionButton.CloseMode.Test&lt;/item&gt; &lt;item name="android:actionBarItemBackground"&gt;@drawable/selectable_background_test&lt;/item&gt; &lt;item name="android:popupMenuStyle"&gt;@style/PopupMenu.Test&lt;/item&gt; &lt;item name="android:dropDownListViewStyle"&gt;@style/DropDownListView.Test&lt;/item&gt; &lt;item name="android:actionBarTabStyle"&gt;@style/ActionBarTabStyle.Test&lt;/item&gt; &lt;item name="android:actionDropDownStyle"&gt;@style/DropDownNav.Test&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/ActionBar.Solid.Test&lt;/item&gt; &lt;item name="android:actionModeBackground"&gt;@drawable/cab_background_top_test&lt;/item&gt; &lt;item name="android:actionModeSplitBackground"&gt;@drawable/cab_background_bottom_test&lt;/item&gt; &lt;item name="android:actionModeCloseButtonStyle"&gt;@style/ActionButton.CloseMode.Test&lt;/item&gt; &lt;/style&gt; &lt;style name="ActionBar.Solid.Test" parent="@style/Widget.Sherlock.Light.ActionBar.Solid"&gt; &lt;item name="background"&gt;@drawable/ab_solid_test&lt;/item&gt; &lt;item name="backgroundStacked"&gt;@drawable/ab_stacked_solid_test&lt;/item&gt; &lt;item name="backgroundSplit"&gt;@drawable/ab_bottom_solid_test&lt;/item&gt; &lt;item name="progressBarStyle"&gt;@style/ProgressBar.Test&lt;/item&gt; &lt;item name="android:background"&gt;@drawable/ab_solid_test&lt;/item&gt; &lt;item name="android:backgroundStacked"&gt;@drawable/ab_stacked_solid_test&lt;/item&gt; &lt;item name="android:backgroundSplit"&gt;@drawable/ab_bottom_solid_test&lt;/item&gt; &lt;item name="android:progressBarStyle"&gt;@style/ProgressBar.Test&lt;/item&gt; &lt;item name="android:titleTextStyle"&gt;@style/Test.ActionBar.TitleTextStyle&lt;/item&gt; &lt;item name="titleTextStyle"&gt;@style/Test.ActionBar.TitleTextStyle&lt;/item&gt; &lt;item name="actionBarTabTextStyle"&gt;@style/MyTabTextStyle&lt;/item&gt; &lt;item name="android:actionBarTabTextStyle"&gt;@style/MyTabTextStyle&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/YOURTHEME.ActionBarStyle&lt;/item&gt; &lt;item name="actionBarStyle"&gt;@style/YOURTHEME.ActionBarStyle&lt;/item&gt; &lt;/style&gt; &lt;style name="YOURTHEME.ActionBarStyle" parent="Widget.Sherlock.Light.ActionBar"&gt; &lt;item name="android:titleTextStyle"&gt;@style/YOURTHEME.ActionBar.TitleTextStyle&lt;/item&gt; &lt;item name="titleTextStyle"&gt;@style/YOURTHEME.ActionBar.TitleTextStyle&lt;/item&gt; &lt;/style&gt; &lt;style name="YOURTHEME.ActionBar.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title"&gt; &lt;item name="android:textColor"&gt;@color/white&lt;/item&gt; &lt;/style&gt; &lt;style name="MyTabTextStyle" parent="style/Widget.Sherlock.Light.ActionBar.TabText"&gt; &lt;item name="android:textColor"&gt;@color/white&lt;/item&gt; &lt;item name="android:background"&gt;@color/white&lt;/item&gt; &lt;/style&gt; &lt;style name="Test.ActionBar.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title"&gt; &lt;item name="android:textColor"&gt;@color/white&lt;/item&gt; &lt;/style&gt; &lt;style name="ActionBar.Transparent.Test" parent="@style/Widget.Sherlock.Light.ActionBar"&gt; &lt;item name="background"&gt;@drawable/ab_transparent_test&lt;/item&gt; &lt;item name="progressBarStyle"&gt;@style/ProgressBar.Test&lt;/item&gt; &lt;item name="android:background"&gt;@drawable/ab_transparent_test&lt;/item&gt; &lt;item name="android:progressBarStyle"&gt;@style/ProgressBar.Test&lt;/item&gt; &lt;/style&gt; &lt;style name="PopupMenu.Test" parent="@style/Widget.Sherlock.Light.ListPopupWindow"&gt; &lt;item name="android:popupBackground"&gt;@drawable/menu_dropdown_panel_test&lt;/item&gt; &lt;/style&gt; &lt;style name="DropDownListView.Test" parent="@style/Widget.Sherlock.Light.ListView.DropDown"&gt; &lt;item name="android:listSelector"&gt;@drawable/selectable_background_test&lt;/item&gt; &lt;/style&gt; &lt;style name="ActionBarTabStyle.Test" parent="@style/Widget.Sherlock.Light.ActionBar.TabView"&gt; &lt;item name="android:background"&gt;@drawable/tab_indicator_ab_test&lt;/item&gt; &lt;/style&gt; &lt;style name="DropDownNav.Test" parent="@style/Widget.Sherlock.Light.Spinner.DropDown.ActionBar"&gt; &lt;item name="android:background"&gt;@drawable/spinner_background_ab_test&lt;/item&gt; &lt;item name="android:popupBackground"&gt;@drawable/menu_dropdown_panel_test&lt;/item&gt; &lt;item name="android:dropDownSelector"&gt;@drawable/selectable_background_test&lt;/item&gt; &lt;/style&gt; &lt;style name="ProgressBar.Test" parent="@style/Widget.Sherlock.Light.ProgressBar.Horizontal"&gt; &lt;item name="android:progressDrawable"&gt;@drawable/progress_horizontal_test&lt;/item&gt; &lt;/style&gt; &lt;style name="ActionButton.CloseMode.Test" parent="@style/Widget.Sherlock.Light.ActionButton.CloseMode"&gt; &lt;item name="android:background"&gt;@drawable/btn_cab_done_test&lt;/item&gt; &lt;/style&gt; &lt;!-- this style is only referenced in a Light.DarkActionBar based theme --&gt; &lt;style name="Theme.Test.Widget" parent="@style/Theme.Sherlock"&gt; &lt;item name="popupMenuStyle"&gt;@style/PopupMenu.Test&lt;/item&gt; &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView.Test&lt;/item&gt; &lt;item name="android:popupMenuStyle"&gt;@style/PopupMenu.Test&lt;/item&gt; &lt;item name="android:dropDownListViewStyle"&gt;@style/DropDownListView.Test&lt;/item&gt; &lt;/style&gt; </code></pre> <p></p> <p></p> <p>I want to make my text color white but I have no idea how to accomplish this. I'd appreciate if anyone can help me with this. </p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload