How to change background in MenuItem?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to change background in MenuItem?

Postby Klaser » Wed Jan 28, 2009 3:15 pm

Hi!

Can anyone tell me how to change the background in a MenuItem?
I want to modify the menu that comes from using the "Menu"-button on the phone.
Atm I can change/add an icon using item.setIcon(), but i cant change the background.
I have tried to inflate the menu using MenuInflater with an XML document where i specify android:itemBackground="#FF00FF", but nothing happens.

Any suggestions? :D

Cheers!
Klaser
Freshman
Freshman
 
Posts: 5
Joined: Wed Jan 28, 2009 2:50 pm

Top

Postby MrSnowflake » Thu Jan 29, 2009 10:05 am

I don't think you can change the menu background, and if this is true you should implement your own Menuing system...
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests