michaelprimez / searchablespinner

Searchable Spinner
Apache License 2.0
314 stars 102 forks source link

How to reset to select #4

Closed sameer715 closed 7 years ago

sameer715 commented 7 years ago

How to reset the spinner from selected value to select on an event for e.g. change in items of list

michaelprimez commented 7 years ago

Hi, the 1.0.3 version allow you to set the selected item, if you put in your code setSelectedItem(-1) the spinner resets to whatever the "RevealEmptyText" is setup. Also, the example project now contain an adapter allowing user to select nothing. If this is what you looking for please close the issue.

thanks

sameer715 commented 7 years ago

Thanks man you are great! Keep up this great work.

justrelax19 commented 6 years ago

setSelectedItem(-1) is giving array out of bound exception error. How to fix it