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, I prefer to manipulate the spinner itself, instead of
> adding fictive record to DB.
> Is that possible?

Simplest solution is probably to use a custom ViewBinder on your 
SimpleCursorAdapter that adds a '(no selection)' row to the spinner. 
That way you don't need to fiddle with the database but can still 
massage the data any way you like when populating the spinner.

-- 
David Given
[EMAIL PROTECTED]

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

Reply via email to