Kerry wrote:
> I've seen this posted before but haven't seen an answer yet. The
> OnItemSelectedListener event handler gets called both when a spinner
> is initialized, and when a user physically clicks the spinner control.
> Is is possible to determine if an event was triggered by a user
> selection somehow?

Assuming it is only called once when initialized, and it is initialized
before the user can make choice, you could use a boolean flag to
distinguish between the two cases. Just be sure to reset the flag if you
pop in a new adapter.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

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