我有一个自动完成的文本视图:

AutoCompleteTextView a = new AutoCompleteTextView(this);

我需要将CultEnsialFieldFLAG值设置为1,并且我想学习用Java代码来完成它。我在google和stackoverflow上搜索,但没找到路。
我只需要这样做:android:completionThreshold="1"用Java代码。
怎么能做到?

最佳答案

使用setThreshold(int)方法
更多信息setThreshold

10-04 23:43