Hi, thanks for the reply. I would like to enable no selection in the spinner itself (like windows combobox style), without using other controls, like checkbox. I forgot to mention an important issue: I am using the SimpleCursorAdapter, which means I get the values from DB table. Therefore, I prefer to manipulate the spinner itself, instead of adding fictive record to DB. Is that possible?
On May 24, 5:35 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Shaimailitwrote: > > I want to permit a user not to select any of the spinner values (as > > default, one of the spinners values is alwys selected). > > How can I enable "no selection" option on spinner control? > > Put an option in the spinner labeled "(no selection)" and make it the > default. > > Or, add a checkbox that toggles on-off the spinner, with "no selection" > being where the spinner is off. > > Or, switch to RadioButtons, which support the notion of a RadioGroup > having nothing selected. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android Training on the Ranch in September!http://www.bignerdranch.com --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

