I\'m creating a spinner
and I\'ve added an OnItemSelectedListener
to it.
However I\'ve noticed that it fires on create.
Now I was wondering if there wa
You should not attempt to prevent the call to the OnItemSelectedListener
.
By default, Android Spinners select the first item returned by the Adapter, and therefore the OnItemSelectedListener
is called to trigger some action on that item.
I would advise that the first item in your Spinner Adapter be a blank item, and your OnItemSelectedListener
can ignore that blank item based on its id.