Change operation background when using ActionBarSherlock

I changed the background color of my ActionBar in my application and it worked perfectly. But then I wanted to change my background color in my activity, and now it looks pretty bad.

Here is my xml theme:   

<style name="TucanActionBarStyle" parent="Widget.Sherlock.Light.ActionBar">
    <item name="android:background">@color/actionbar_green</item>
</style>


<style name="Theme.TucanActionBar" parent="@style/Theme.Sherlock.Light">
    <item name="android:actionBarStyle">@style/TucanActionBarStyle</item>   
    <item name="android:background">@android:color/white</item>
</style>

And here's what it looks like: http://dl.dropbox.com/u/2683101/Screenshot_2012-05-18-18-49-23.png

+3
source share
1 answer

You must use android:windowBackgroundto change the background activity. Change android:backgroundwill affect many other things due to the use of context and ContextThemeWrappers.

+8
source

All Articles