I have a similar problem. With only one spinner though. I don't want to see the initial selection unless the user actually selects it. If I ignore the first call to onItemSelected(), It will not be called again if the user selects the same value as the initial selection. It there at least some other way to know if this has happened?
On Aug 5, 10:03 am, jvdanker <[email protected]> wrote: > I have two questions; > > 1) I have aSpinnerwith several options provided by an ArrayAdapter > and have anonItemSelectedlistener on thisSpinner. When selecting an > item from thespinner, I want to display another view (list-view) but > this method is unintentionally invoked upon initially displaying the > view. The list-view is therefore displayed upon startup of the > application. > > It is possible to add aspinner-on-item-select listener that won't > fire upon initially displaying the view but only by the user selecting > an item? > > 2) is it possible to display a custom text upon initially displaying > thespinner(for example: "Select an item") without this text being > part of the itemlist? > > regards, > Juan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

