[android-developers] Re: Spinner - No selection

2008-06-18 Thread Shaimailit
Hi, Thanks again, Mark and David. The suggested ideas seems too complicated (I was hoping to simplify the solution. and not the other way around...). Therefore, I would probably have to add some fictive records to database tables. It isn't such a legitimate software design, but it is the simplest

[android-developers] Re: Spinner - No selection

2008-06-09 Thread David Given
Mark Murphy wrote: > David Given wrote: >> Simplest solution is probably to use a custom ViewBinder on your >> SimpleCursorAdapter that adds a '(no selection)' row to the spinner. > > Can a ViewBinder add rows? I don't see how given the API. Yeah, if you're mapping the Spinner's data directly

[android-developers] Re: Spinner - No selection

2008-06-09 Thread Mark Murphy
David Given wrote: > Simplest solution is probably to use a custom ViewBinder on your > SimpleCursorAdapter that adds a '(no selection)' row to the spinner. Can a ViewBinder add rows? I don't see how given the API. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the

[android-developers] Re: Spinner - No selection

2008-06-09 Thread David Given
Shaimailit wrote: [...] > 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,

[android-developers] Re: Spinner - No selection

2008-06-09 Thread Mark Murphy
Shaimailit wrote: > 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 fro

[android-developers] Re: Spinner - No selection

2008-06-09 Thread Shaimailit
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 prefe

[android-developers] Re: Spinner - No selection

2008-05-24 Thread Mark Murphy
Shaimailit wrote: > 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