Is there a workaround to the OnItemSelectedListener bug?

前端 未结 3 1567
别跟我提以往
别跟我提以往 2021-01-18 12:58

I suspect the answer is no, but thought I\'d ask...

I have a Spinner that needs to reveal a hidden \"proceed\" button when the user has made a selection. However, s

相关标签:
3条回答
  • 2021-01-18 13:01

    I've seen in an few answer here on stackoverflow that onNothingSelected will enable you to detect this.

    That answer was the only one and wasn't accepted, and I haven't tried it myself, but give it a go and see what happens.

    0 讨论(0)
  • 2021-01-18 13:09

    I have a Spinner that needs to reveal a hidden "proceed" button when the user has made a selection.

    The user has always made a selection. There is no concept of a Spinner without a selection. Hence, do not hide the "proceed" button.

    0 讨论(0)
  • 2021-01-18 13:09

    I know that this isn't a solution, per se, but from the sound of things, it is a requirement that the user select SOMETHING to be allowed to continue, correct? What if you add, as the first item in the spinner, an unrelated item, saying something like "Please Select One..."? Have that as the default chosen item, then the user will have to make a different selection to continue, hence, the listener will be fired.

    Just a thought. :)

    0 讨论(0)
提交回复
热议问题