在 Android 中为 Spinner 创建文本过滤器(如快速搜索) [英] Creating a text filter (like quick search) for a Spinner in Android

查看:17
本文介绍了在 Android 中为 Spinner 创建文本过滤器(如快速搜索)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Android 应用程序.我的活动在这里有一些小部件,包括 Spinner.我希望可以使用快速搜索按钮搜索 Spinner 对象.这个想法是用户点击 Spinner 对象,他会看到列表(适配器).如果他点击快速搜索按钮,他应该会看到一个文本字段来输入一个字母,然后微调器列表会跳转到它找到的第一个单词.就像它处理 html 和选择标签一样.

I'm developing an Android application. I have my activity here with some widgets including a Spinner. I want that Spinner object to be searchable using the quick search button. The idea is that the user tapped the Spinner object and he sees the list (the adapter). If he taps the quick search button he should be provided with a text field to enter a letter and then the spinner list jumps to the fist word it finds with the letter supplied. Just as it works with html and select tags.

我试过谷歌(当然也是如此)但似乎

I tried google (and SO of course) but it seems that

  • 没有人对这样的解决方案感兴趣
  • 这是一个严密保密的秘密.:)

你对这个话题有什么建议吗?

Do you have some pointers in this topic?

推荐答案

看起来您在谈论 AutoCompleteTextView

这篇关于在 Android 中为 Spinner 创建文本过滤器(如快速搜索)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆