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