Why is OnItemSelectedListener only called when an item changes, but not on every user selection?

后端 未结 3 1006
说谎
说谎 2021-01-17 21:48

I\'m using spinner controls in an Android application, and I handle user selections via an onItemSelectedListener() method. This seems to work okay when a diffe

3条回答
  •  滥情空心
    2021-01-17 22:37

    The default Spinner doesn't trigger any event when you select the same item as your currently selected item. You will need to make a custom Spinner in order to do this. See How can I get an event in Android Spinner when the current selected item is selected again?

提交回复
热议问题