创建于Android的一个微调的文本过滤器(如快速搜索) [英] Creating a text filter (like quick search) for a Spinner in Android

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

问题描述

我开发一个Android应用程序。我在这里有我的活动与一些部件,包括一个微调。我想要微调对象使用快速搜索按钮即可搜索。我们的想法是,用户拍了拍微调对象,他看到名单(适配器)。如果他水龙头快速搜索按钮,他应提供的文本字段输入一个字母,然后微调列表跳转到它提供的信找到了拳头字。正如它的工作原理与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.

我想谷歌(和SO当然),但似乎

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


  • 无人问津的这样一个解决方案的

  • 这是一个讳莫如深。 :)

你有一些指针,这个主题?

Do you have some pointers in this topic?

推荐答案

看起来你是在谈论给出类似的功能<一个href=\"http://developer.android.com/reference/android/widget/AutoCompleteTextView.html\">AutoCompleteTextView

Looks like you are talking about similar functionality given in AutoCompleteTextView

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

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