Immediately show autocomplete on Android

后端 未结 6 2227
鱼传尺愫
鱼传尺愫 2021-02-19 05:39

The Android autocomplete only starts after two letters. How can I make it so the list appears when the field is just selected?

6条回答
  •  既然无缘
    2021-02-19 06:10

    Have a look to setThreshold method:

    public void setThreshold (int threshold)
    Since: API Level 1
    Specifies the minimum number of characters the user has to type in the edit box before the drop down list is shown.
    When threshold is less than or equals 0, a threshold of 1 is applied.

提交回复
热议问题