Basically I want to be able to tell the difference between "the user
selected something" and "the user hasn't selected something yet".

I have a static list of items that I want to display in the spinner
when it is opened. However, when the user is shown the spinner for the
first time (before he opens it), I want the spinner to show “Please
select…”. Once the user has opened the spinner I don’t want the
“Please select…” item to be shown in the list of possible items.
Obviously if the user dismisses the dialog without selecting something
I’d like to put the “Please select…” back on the (closed) spinner
display.

I think I should be able to do this by dynamically adding/removing
items from the adapter, but my problem is that I cannot seem to catch
the “open spinner” event so that I can do it at the right time.
OnClickListener is not supported for spinners.

Any ideas what event I can get a callback for when the spinner is
opened, so that I can dynamically “fix” the data before the spinner
tries to display it?

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