Rectangle 27 1

android AutoCompleteTextView dismiss and show dropdown list when text changes?


Because I got data from the server. So in performFiltering, I just return a non-null object. Hope it helpful to you.

Note
Rectangle 27 0

android AutoCompleteTextView dismiss and show dropdown list when text changes?


I guessed that, you are getting a list of data from the server based on the string in the autocomplete textview. So that the adapter loads the filtered list whenever the text changes. Try to implement CursorAdapter. Its the better solution for your problem. Just try and let me know.

yes... I have to override getFilter() in Adapter, extends AutoCompleteTextView and override enoughToFilter() to always return true. So this prevents AutoCompleteTExtView dismiss and show.

Note
Rectangle 27 0

android AutoCompleteTextView dismiss and show dropdown list when text changes?


Implements Filterable in adapter, and use Filter.

Note