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.

Was it helpful?

Solution

Call showDropDown() in your onCreate()

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

Displays the drop down on screen.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top