I'd like to change the background drawable for the Menu's MenuItems in my activity. I simply want a image different from the standard ones that you can find in the sdk with the filename:
menuitem_background_pressed.png etc... So what I did Is I took the following file from deep inside the / tools/.. directory : menuitem_background.xml And put it into my resources/drawables directory, changed it a little bit to use my own pngs. ( This worked great e.g. for a listselector for a ListView). However, it doesn't seem to be so easy for the menu... I did some research in the references and in the android framework source code and thought that I could change the style of the background drawable with something like the following line in a theme that I apply to my whole application ( with the AndroidManifest file) : <item name="android:itemBackground">@drawable/menuitem_background</ item> In the android source I found the following line which looked to me like the place where the assignment of the background drawable happens: IconMenuView.java, Line 145: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/com/android/internal/view/menu/IconMenuView.java;h=781c608aaebb723002fafb8cd259f7d1c1ae59f9;hb=HEAD#l145 Setting the itemBackground styleable doesn't seem to do anything though. Am I missing something here? Is there any way to change the way the menu looks? The problem is that I would like to to use the orange color for a different thing in my application so I would like to adjust the menu to my needs. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

