Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default empty spinner

How I can set spinner empty by default? I mean that spinner doesn't have value (empty value) till user choice it.

like image 914
user1021984 Avatar asked Sep 26 '26 12:09

user1021984


1 Answers

I usually just provide one fake value with toString empty string. Then the spinner appears empty to the user. Afterwords just perform validation before you finish the activity and if the default value is still on, just show an error, rather than continuing on.

like image 53
Boris Strandjev Avatar answered Sep 28 '26 03:09

Boris Strandjev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!