my app have a spinner and also have reset button. how to update the values while clicking on button?
+1
A:
Set a new adapter on the Spinner
via setAdapter()
. Or, if it is an ArrayAdapter
, use add()
, insert()
, and remove()
to modify the data. Or, if it is a CursorAdapter
, requery()
it to get fresh data.
Since you elected not to tell us what "update the values" means, we can only guess.
CommonsWare
2009-12-15 16:42:48