I want to know if there is a specific reason why you cannot use OnItemClickListener
with a spinner in Android? Looking through older posts ( setOnItemClickListener Not Works with Spinner and I have an error: setOnItemClickListener cannot be used with a spinner, what is wrong?) it seems as though people don't even bother with OnItemClickListener
and rather go straight for OnItemSelectedListener
. Why does Eclipse give OnItemClickListener
as an option for a spinner if it can never work?
Some context- I'm not really too bothered by which method I use. As soon as the user selects an item from the spinner, I want to make a second spinner visible and populate it from the database based on the option selected in the first spinner. Now when I use OnItemSelectedListener
, the second spinner is immediately set to visible. Is there a workaround for this?