Android: AutoCompleteTextView show suggestions when no text entered

后端 未结 14 1908
-上瘾入骨i
-上瘾入骨i 2020-11-27 11:20

I am using AutoCompleteTextView, when the user clicks on it, I want to show suggestions even if it has no text - but setThreshold(0) works exactly

14条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 12:14

    Just call this method on touch or click event of autoCompleteTextView or where you want.

    autoCompleteTextView.showDropDown()
    

提交回复
热议问题