本文介绍了使用editText搜索listView而不过滤像android Cambridge Dictionary这样的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Android应用程序中提供搜索功能,在输入editText后,只需转到列表中带有第一个字母的单词项而不过滤任何项目。例如,如果单词以-b- letter开头,则listview只会转到具有最佳匹配的项目。喜欢剑桥词典下面的图片(但我不想使用数据库!!!只需输入就可以到列表中的特定项目。):



[]



但是其他项目也是活跃的,因为当我们向上滚动listView时,我们会看到如下字样:



.azure .azuki .AZT。和...



高于以-b-开头的单词。请帮忙。在此先感谢。

I want to provide a search capability in my android app that after typing in editText, just goes to the word item in the list with the first letter without filtering any item. For Example if the word begins with -b- letter, listview just goes to the item with the best match. Like something in below picture from Cambridge Dictionary ( But I don't want to use database!!! Just going to specific item in the list by typing.):

http://upload7.ir/imgs/2014-08/00600459955988266872.jpg[^]

But other items are also active, as when we scroll up the listView we see words like:

.azure .azuki .AZT . and ...

that are upper than words that begins with -b- . Please help with this. Thanks in advance.

推荐答案


这篇关于使用editText搜索listView而不过滤像android Cambridge Dictionary这样的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 00:38