MaterialSpinner icon indicating copy to clipboard operation
MaterialSpinner copied to clipboard

Reset spinner to hint text

Open pingpingsim opened this issue 5 years ago • 1 comments

I have a switch for different nationality.

  • If the switch is turned on, the spinner view will be displayed showing the country list.
  • If the switch is turned off, the spinner should reset back to the hint text. But using .setHint("hint text"), I can't seem to reset the list. Is there a way to do so?

pingpingsim avatar Mar 11 '19 11:03 pingpingsim

Hi, I've seen that materialSpinner extends TextView so I reset the hint just setting textview properties as materialSpinner.setText("Hint"); and this will work exactly like hint. you can try it.

walid-ashik avatar Apr 17 '19 10:04 walid-ashik