Thanks, Mark...that did the trick. :) On Apr 9, 5:44 pm, Mark Murphy <[email protected]> wrote: > polyclefsoftware wrote: > > I'm trying to create a spinner that displays an image+text, where the > > image can be one of two possible images, depending on a parameter > > (e.g. think of a list of users, with a green light if they're online > > and a red one if they're not). > > > I subclassed ArrayAdapter, and I get exactly the behavior I want for > > the image currently displayed in the Spinner. But when I click on the > > Spinner and it displays all the drop down items, they do not display > > per the custom ArrayAdapter I created. > > You also need to override getDropDownView(). > > > Is there a way to get the view of each item in the drop-down menu to > > display exactly as they do in the Spinner window when it's not open? > > You may not want to do that. The stock simple_spinner_dropdown_item is a > CheckedTextView, which is what gives you the radio button on the right > to indicate the current selection. I don't know whether Spinner requires > a View that supports Checkable or not. > > > Do I need to override setDropDownViewResource similar to the way I > > overrode getView? > > No, you also need to override getDropDownView(). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

