how to change the backgroundcolor of a menu

Put your problem here if it does not fit any of the other categories.

how to change the backgroundcolor of a menu

Postby arvishreef » Sat May 30, 2009 8:34 am

Hello,


I have a menu with 3 items. I need to change the background color of the menu.
How do i do this.

will this piece of code works:

<item android:id="@+id/Pause"
android:icon ="@drawable/iconpause"
android:background="#ff99ccff"
/>



Thanks,
arvishreef
Freshman
Freshman
 
Posts: 9
Joined: Mon May 04, 2009 6:18 am

Top

Re: how to change the backgroundcolor of a menu

Postby zoniq » Tue Oct 20, 2009 10:41 am

arvishreef wrote:I have a menu with 3 items. I need to change the background color of the menu.
How do i do this.

will this piece of code works:

<item android:id="@+id/Pause"
android:icon ="@drawable/iconpause"
android:background="#ff99ccff"
/>

This doesn't work for me. Are there any new insights on this?
zoniq
Junior Developer
Junior Developer
 
Posts: 21
Joined: Mon Sep 28, 2009 12:33 pm

Re: how to change the backgroundcolor of a menu

Postby dargone » Fri Oct 23, 2009 10:19 am

arvishreef wrote:<item android:id="@+id/Pause"
android:icon ="@drawable/iconpause"
android:background="#ff99ccff"
/>


try only #ff99cc
dargone
Freshman
Freshman
 
Posts: 2
Joined: Fri Oct 09, 2009 10:09 am

Re: how to change the backgroundcolor of a menu

Postby zoniq » Fri Oct 23, 2009 10:33 am

dargone wrote:try only #ff99cc


Doesn't help.
zoniq
Junior Developer
Junior Developer
 
Posts: 21
Joined: Mon Sep 28, 2009 12:33 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google Feedfetcher and 19 guests