I am trying to change the color of the rollover effect when you touch an ActionBar Item. On my Galaxy Nexus with 4.0.2 it's kind of a turquoise color shading which I want to be in a different color.
To be clear, I am talking about ActionBar items here, not navigation tabs.
I got it working under the compatibility library, but for Android 3.0 and higher, i.e. the "real" ActionBar, I just can't figure out how to do this.
Does anyone knows if and how this can be achieved?
The native action bar uses the theme attribute
selectableItemBackground
for action item background drawing. This should be a state-list drawable.Here's the declaration in
Theme.Holo
:And its drawable XML: