MaterialSpinner
MaterialSpinner copied to clipboard
Reset spinner to hint text
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?
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.