Skip to content Skip to sidebar Skip to footer

Actionbarsherlock Background Image

Having some trouble overriding ActionBarSherlock styles, hopefully someone can help. I have created a drawable like so: (in res/drawable/actionbar_background.xml)

Solution 1:

This should give you the Theme.Sherlock.Light style with your custom action bar background:

<stylename="ActionBar"parent="Theme.Sherlock.Light"><itemname="abBackground">@drawable/actionbar_background</item></style>

Put it in your res/values/style.xml file and declare your style to be @style/ActionBar in your manifest.

More info - http://actionbarsherlock.com/theming.html

Solution 2:

For version 4.0+, you can simply use the "background" item name.

<stylename="ActionBar"parent="Theme.Sherlock.Light"><itemname="background">@drawable/actionbar_background</item></style>

Post a Comment for "Actionbarsherlock Background Image"