in may application, i have a spinner widget that contains huge amount of data.
it is hard for user to find his item between them, so i decided to insert search capability for content of spinner.the idea is If the user taps the quick search button he should be provided with a text field to enter a letter and then the spinner list jumps to the fist word it finds with the letter supplied.
is there any solution to that?
thanx
in may application, i have a spinner widget that contains huge amount of data.
Share
Let us assume, full Spinner data is list.
Initialize
listCurrent=list.clone();set ArrayAdapter on spinner by
override onTouch event, open dialog containing edit text say editText and a button on tap, else select item, in dialog button click, get String from editText and filter results and reset adapter by invoking: