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 <nflous...@gmail.com> wrote: > 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 <fhu...@gmail.com> wrote: > > > > > 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 <nflous...@gmail.com> wrote: > > > > Mostly you have to derive from certain adapter and then override > > > getView() method there. > > > > On Oct 6, 4:24 pm, fhucho <fhu...@gmail.com> 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 of the item's text black and the > > > > second part gray. I tried to create custom ArrayAdapter for the > > > > Spinner but I just can't figure out how to do it. I would be really > > > > gratefull if someone could help me with this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---