Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Spinner to Unselected

I currently have a whole bunch of spinners in my application. I wasn't thinking much and for each spinner, the first index is filled with N/A. It's not a big deal, but I was hoping to make it a bit cleaner.

I was wondering if there was a way that instead of calling setSelection( index ), I wanted to know if there was a way to set a Spinner to have nothing selected.

Basically, I want the spinner to have a list of items within it, but display none of them until you click on it. I also don't want there to be a blank index at the top.

I think its quite possible that there is no way to do this, so if anyone is sure of this, please let me know.

Thanks.

like image 347
JuiCe Avatar asked Aug 23 '12 18:08

JuiCe


1 Answers

Its better to put first position as blank, so that it can be seen as nothing selected.

like image 159
moDev Avatar answered Oct 16 '22 14:10

moDev