Skip to content Skip to sidebar Skip to footer

Style An Action Bar In Android Honeycomb

I'd like to set the background of an action bar (Honeycomb) using themes and styles. You can do it in code with ActionBar.setBackgroundDrawable(Drawable), but I can't find the corr

Solution 1:

Ok, I figured it out. I needed to inherit from the base action bar style. The correct styles are:

<style name="Theme.MyApp" parent="android:style/Theme.Holo">
    <item name="android:actionBarStyle">@style/ActionBar</item>
</style>

<style name="ActionBar" parent="android:style/Widget.Holo.ActionBar">
    <item name="android:background">@drawable/action_bar_background</item>
</style>

Post a Comment for "Style An Action Bar In Android Honeycomb"