I am trying to set Android tab text color by doing this in my style.xml:
<resources xmlns:android="http://ift.tt/nIICcg">
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:actionBarStyle">@style/ActionBarStyle</item>
</style>
<style name="ActionBarStyle" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#FFFFFF</item>
<item name="android:titleTextStyle">@style/myTheme.ActionBar.Text</item>
<item name="android:textStyle">bold</item>
<item name="android:textSize">16sp</item>
</style>
<style name="myTheme.ActionBar.Text" parent="@android:style/TextAppearance">
<item name="android:textColor">#000000</item>
</style>
However, with these codes, I only managed to change the tab background color to white but text as white color as well. I wonder why the part where I set text color for action bar does not work.
Thanks in advance.
No comments:
Post a Comment