Is there a way to display drop down in Multi auto complete textview without typing even a single text

StackOverflow https://stackoverflow.com/questions/21549921

  •  06-10-2022
  •  | 
  •  

Question

There a method to set threshold to 1. so that whenever user types a single character, match will be found and it displays drop down.

But what I really want here is, all items should be listed when I tap the "multiautocompletetextview". (just like a spinner.)

I cannot set threshold to zero or less than zero, if I set so that will be changed to 1.

Était-ce utile?

La solution

Call showDropDown() in your onCreate()

http://developer.android.com/reference/android/widget/AutoCompleteTextView.html#showDropDown()

Displays the drop down on screen.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top