On Mon, Aug 13, 2012 at 11:00 AM, Heitor Lima <[email protected]>wrote:

> With this code, initially the item "One" is displayed. I could just add a
> new item "Select One" to the items, but then "Select One" would also be
> displayed in the dropdown list as first item, which is not what I want.


Unfortunately, that's as good as you're going to get with Spinner. You'll
have to code up your own version or extend the class and add this
functionality.

What I do is add the "Select One" type prompt and just ignore it if that's
what the user selected. Works well enough.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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