Hi all. I'm attempting to add custom drawables to the action bar items. I want to set a drawable as the general bar background, and have a pressed state drawable for when any of the bar items are clicked.
I've been following Nick Butchers guide here: http://android-developers.blogspot.co.uk/2011/04/customizing-action-bar.html Whatever I do, when I press an item, I see the generic light blue background, not my specified pressed drawable. Xoom tablet with 3.2 - here's the code basics: <style name="MyTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="@android:style/ Widget.Holo.Light.ActionBar"> <item name="android:background">@drawable/action_bar_bg</item> <item name="android:selectableItemBackground">@drawable/ selector_actionbar_bg</item> </style> The selector refers to this: <selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/ config_mediumAnimTime" > <item android:state_pressed="true" android:drawable="@drawable/ action_bar_bg_press" /> <item android:state_focused="true" android:drawable="@drawable/ action_bar_bg_press" /> <item android:drawable="@drawable/action_bar_bg_press" /> </selector> Help appreciated! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en