使用哪些 UI 组件将列表添加到 EditText 的底部?

发布于 2024-11-06 02:51:50 字数 119 浏览 6 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

微凉徒眸意 2024-11-13 02:51:50

您可能需要一个AutoCompleteTextView

You probably want an AutoCompleteTextView.

回忆躺在深渊里 2024-11-13 02:51:50

您好,您可以使用 AutoCompleteTextView 来实现此目的。请点击下面的链接
自动完成文本视图

AutocompleteTextview 的开发者链接

Hi you can use AutoCompleteTextView for this .Follow links below
AutocompleteTextview

Developer link for AutocompleteTextview

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文