0

I have been trying to change the background of my action bar for quite some time now. I found some posts here of users who could change the background but not the text color. In my example this is the contrary as the background is giving me problems.

I have not created any dynamic design from my activity.

The following is my style.xml:

<style name="MyTheme" parent="android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyTheme.ActionBarStyle</item>  
</style>     

<style name="MyTheme.ActionBarStyle" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item>
<item name="android:background">#FD5200</item>
</style>

<style name="MyTheme.ActionBar.TitleTextStyle" parent="android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">#FD5200</item>
</style>

Any knows what might be causing this?

agiusl
  • 3
  • 1
  • 3
  • 1
    Try adding items with names `android:backgroundStacked` and `android:backgroundSplit` – vasart Jul 09 '12 at 20:45
  • Thank, turns out I was setting the background dynamically through a line of code which I deleted a number of times yet Ctrl+Z popped it up again without knowing. – agiusl Aug 01 '12 at 19:25

1 Answers1

0

Consider using ActionBarSherlock a link here may help you going.

Community
  • 1
  • 1
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166