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
  •  | 
  •  

Вопрос

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.

Это было полезно?

Решение

Call showDropDown() in your onCreate()

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

Displays the drop down on screen.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top