Android Spinner: Get the selected item change event

前端 未结 16 2399
挽巷
挽巷 2020-11-22 16:47

How can you set the event listener for a Spinner when the selected item changes?

Basically what I am trying to do is something similar to this:

spinn         


        
16条回答
  •  长情又很酷
    2020-11-22 17:49

    The docs for the spinner-widget says

    A spinner does not support item click events.

    You should use setOnItemSelectedListener to handle your problem.

提交回复
热议问题