Search code examples
javaandroidandroid-actionbaractionbarsherlock

Change ActionBar text color


I want to change my ActionBar color to blue (#0c01e3). My code is working because the actionbar background property is doing its job. But the text won't change. Any ideas? I'm using ABS.

<style name="MyActionBar1" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
        <item name="android:backgroundSplit">#06e301</item>
        <item name="android:backgroundStacked">#06e301</item>
        <item name="android:background">#06e301</item>
        <item name="background">#06e301</item>
        <item name="backgroundSplit">#B9001F</item>
        <item name="android:textColor">#0c01e3</item>
        >

enter image description here

Update

:

enter image description here


Solution

  • On the theme, there is an attribute, actionItemTextColor, which controls this color.

    Remember to specify it with and without the android: prefix when using ActionBarSherlock.