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