android– 如何使用java代码将completionThreshold设置为AutoCompleteTextView?

android– 如何使用java代码将completionThreshold设置为AutoCompleteTextView?,第1张

概述我有这个AutoCompleteTextView:AutoCompleteTextViewa=newAutoCompleteTextView(this);我需要将completionThreshold标志值设置为1,我想学习使用java代码.我搜索谷歌和stackoverflow,我没有找到方法.我只需要这样做:android:completionThreshold=“1”与java代码.如何才能

我有这个autoCompleteTextVIEw:

autoCompleteTextVIEw a = new autoCompleteTextVIEw(this);

我需要将completionThreshold标志值设置为1,我想学习使用java代码.我搜索谷歌和stackoverflow,我没有找到方法.

我只需要这样做:androID:completionThreshold =“1”与java代码.

如何才能做到这一点?

解决方法:

使用setThreshold(int)方法

了解更多信息setThreshold

总结

以上是内存溢出为你收集整理的android – 如何使用java代码将completionThreshold设置为AutoCompleteTextView?全部内容,希望文章能够帮你解决android – 如何使用java代码将completionThreshold设置为AutoCompleteTextView?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1115969.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存