I am trying to change the blue background of a focussed/pressed menuitem in the overflow menu.
I'm talking about this:
image http://oi48.tinypic.com/2j104l0.jpg
I think I've overwritten every possible attribute from the Theme
and Theme.Holo
in Themes.xml
and went to each style in Styles.xml
but couldn't change the blue background.
EDIT
i figured out that the style i should override is android:dropDownListViewStyle
but it didn't work at all.
but then i changed the theme from Theme.Holo.Light.DarkActionBar
to Theme.Holo.Light
and guess what? it worked!!
so, can anyone shed some light on this?? how can i change the color on a theme with DarkActionBar
??
ok, i found a solution for my problem: link to a post in the ActionBarSherlock google group
i've overseen this entry:
android:actionBarWidgetTheme
in theTheme.Holo.Light.DarkActionBar
theme.now all i had to do is define a theme that overrides
Theme.Holo
with one style in it:<item name="android:dropDownListViewStyle">@style/myDropDownListView</item>
and point to this theme instead.declare a selector drawable, and put it as background of listview item.
refer to drawable resource