You can change the background of a menu item on the actionbar using the android:actionBarItemBackground
attribute.
However, this results in the background of menu items in ActionMode having the same color. Is there a way to have different backgrounds for menu items for the normal ActionBar and the ActionMode?
<item name="android:actionBarItemBackground">@drawable/selectable_background_mytheme</item>
selectable_background_mytheme
:
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime" >
<item android:state_pressed="false" android:state_focused="true" android:drawable="@color/red" />
<item android:state_pressed="true" android:drawable="@color/blue" />
<item android:drawable="@android:color/transparent" />
</selector>