change spinner background color without loosing style

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

change spinner background color without loosing style

Postby onomato » Sat Jan 26, 2008 6:44 pm

I need to change the background color of a spinner, but I want to use normal style (layout) of it. If I use setBackgroundColor or try to do it in the xml, it becomes just flat and ugly. In generel how can I handle some parameter in the default layout of views like button or spinner.
onomato
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Jan 26, 2008 6:35 pm

Top

Postby plusminus » Sat Jan 26, 2008 7:56 pm

Hello onomato,

perhaps have a look at the :src: ToggleButton-Tutorial.
Search for "createDrawableState() ".

Sorry for this short answer :( .

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 25 guests