Onitemselectedlistener For Spinner That Was Added Programmatically Does Not Trigger
I've got a spinner that opens programmatically. It pops up and appears to be working fine, but for some reason my OnItemSelectedListener does not trigger any of the events within i
Solution 1:
As the comment thread above suggests, many if not all events related to a View will not behave as you expect if the View in question is not attached to a window. Do not use unattached Views to drive any sort of user interaction.
Solution 2:
I had the same problem. I fixed it by setting spinner visibility not "Gone".
Post a Comment for "Onitemselectedlistener For Spinner That Was Added Programmatically Does Not Trigger"