I have a Spinner configured with a ListAdapter that I want it to
initially show as having no selection (I don't want it to default to
the first item in the list). When the user clicks on the Spinner I
want it to show the items contained in the ListAdapter and to choose
one.

I don't want to add a blank option as the first item in my list
because then the empty option shows in the DropDownView, looks lame
and can be selected by the user.

I tried starting with no ListAdapter which gives the correct initial
view, and had planned on swapping in the real ListAdapater when the
user click on the Spinner. But Spinner#setOnClickListener throws an
RuntimeException saying you should use #setOnItemClickListener and
Spinner#setOnItemCLickListsner throws a RuntimeException saying it
cannot be used with a Spinner.

Surely this is a common use case.

How can I make the above happen?

-- 
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

Reply via email to