I need to change the Action bar tab text color.So far Action bar tab text color displayed in black.But I need to change it into white color.
Manifest:
Declare this in your AppTheme:
<item name="android:actionBarTabTextStyle">@style/tabtextcolor</item>
Then here is the style declaration:
<style name="tabtextcolor" parent="@android:style/Widget.Holo.Light.ActionBar.TabText">
<item name="android:textColor">@android:color/white</item>
</style>
Use this in our theme to set the actionbar text color:
<item name="titleTextStyle">@style/ActionBar.CustomTitle</item>
<!-- ActionBar title text -->
<style name="ActionBar.CustomTitle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:textColor">@color/title_detail_color</item>
<!-- The textColor property is backward compatible with the Support Library -->
</style>
Sorry, this is for the case you are using AppCompat support library.
You could use the general:
<!-- ActionBar title text -->
<style name="ActionBar.CustomTitle"
parent="@style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@color/title_detail_color</item>
</style>
Also, instead of Holo, you could try some other themes that match your current theme. You can also read more on the official documentation: https://developer.android.com/training/basics/actionbar/styling.html