我有这个AutoCompleteTextView:AutoCompleteTextViewa=newAutoCompleteTextView(this);我需要将completionThreshold标志值设置为1,并且我想学习使用Java代码来完成它。我在google和stackoverflow上搜索,但没有找到方法。我只需要这样做:android:completionThreshold="1"使用java代码。如何做到这一点? 最佳答案 使用setThreshold(int)方法了解更多信息setThreshold