使用哪些 UI 组件将列表添加到 EditText 的底部?
我有一个 EditText 和一个字符串数组列表。当用户开始在 EditText 中输入一些字符时,我想显示用户可能输入的内容的列表。
我可以进行字符串比较和其余的操作,但我想知道我应该使用什么 UI 对象?
I have an EditText and an ArrayList of Strings. When the user starts typing some characters into the EditText I want to show a list of what the user might be typing.
I can do the String comparison and the rest, but I am wondering what UI objects I should use for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要一个
AutoCompleteTextView
。You probably want an
AutoCompleteTextView
.您好,您可以使用 AutoCompleteTextView 来实现此目的。请点击下面的链接
自动完成文本视图
AutocompleteTextview 的开发者链接
Hi you can use AutoCompleteTextView for this .Follow links below
AutocompleteTextview
Developer link for AutocompleteTextview