简体   繁体   English

Android文本框,具有类似旋转框的下拉菜单

[英]Android text box with spinner-like dropdown

I am trying to implement a text box that, when the user types something, it asynchronously expands a drop-down menu that contains suggestions, much like how the Google search bar shows predictive search queries. 我正在尝试实现一个文本框,当用户键入内容时,它会异步扩展包含建议的下拉菜单,就像Google搜索栏如何显示预测性搜索查询一样。 In other words, combining an EditText with a Spinner in the sense that the user types something and it presents a list of selectable options right below it. 换句话说,将EditText与Spinner结合在一起,就意味着用户键入了一些内容,并在其下方显示了一个可选选项列表。 Does such a class exist in the Android library? Android库中是否存在此类?

You can follow this tutorial from android: 您可以从android跟随本教程:

http://developer.android.com/resources/tutorials/views/hello-autocomplete.html http://developer.android.com/resources/tutorials/views/hello-autocomplete.html

is an auto complete example on a EditText. 是EditText上的自动完成示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM