I would love to set a Backgroundimage to the ActionBar which I imported with the “ActionBar Sherlock” library. However I can’t find any link on the internet on how to distinctively set an BackgroundImage with XML.
Does anybody here have a hint which he could give me :)?
You create a style for your actionbar, it has to inherit Theme.Sherlock or Theme.Sherlock.Light.
Then link to your image in the attribute abBackground.
Assuming you have an image called myBackgroundImage in res/drawable your style xml would be:
You can find more attributes for the actionbar here: ActionBarSherlock – Theming
More on styles is found here: Styles and Themes | Android Developers