[android-developers] Re: How to create Spinner with custom items

2009-10-06 Thread fhucho
But the problem is that to get this working I would also have to properly manage checking und unchecking the RadioButtons (this does normall Spinner automatically). Do I really have to do all this just to make part of the items text gray?? On Oct 6, 11:17 pm, konic wrote: > Well, on android foru

[android-developers] Re: How to create Spinner with custom items

2009-10-06 Thread konic
Well, on android forums there are plenty of examples. In general, you have to create and then use certain layout. Put all stuff you want onto this layout based on the position index. Return that layout. On Oct 6, 5:05 pm, fhucho wrote: > Yes, I have to override getView() and getDropDownView(), b

[android-developers] Re: How to create Spinner with custom items

2009-10-06 Thread fhucho
Yes, I have to override getView() and getDropDownView(), but what should I do in getDropDownView(), in order to display a standard Spinner item with RadioButton, with the only difference that part of the text would have my custom color? On Oct 6, 10:51 pm, konic wrote: > Mostly you have to deriv

[android-developers] Re: How to create Spinner with custom items

2009-10-06 Thread konic
Mostly you have to derive from certain adapter and then override getView() method there. On Oct 6, 4:24 pm, fhucho wrote: > How can I create Spinner with customized items? Normally it is > possible to have spinner items with text and checkboxes on the right, > but I would like to have one part o