AutoCompleteTextView的使用

在xml中添加AutoCompleteTextView后添加独特属性"android:completionThreshold"   android:completionThreshold="2"//表示输入多少个字符后开始自动匹配 回到java代码中实例化AutoCompleteTextView,添加一个私有数组,为AutoCompleteTextView提供待匹配的数据源,用ArrayAdapt
相关文章
相关标签/搜索