如何拥有数千个项目,如何使过滤列表视图更快 [英] How to make filter listview more quick when you have a thousands of items

查看:72
本文介绍了如何拥有数千个项目,如何使过滤列表视图更快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一本字典,我在listview中拥有所有单词,我想根据edittext过滤列表。同时我使用

过滤了English.this.adapter.getFilter()。filter(cs);

但是它太慢了我想尽快让它更快.thanks

i'm developing a dictionary i have all my words in a listview, and i wanna to filter the list based on an edittext. meanwhile i filtered using
" English.this.adapter.getFilter().filter(cs);"
but it is too slow i wanna to make it quicker if possible .thanks

推荐答案

嗨..获取所有字典项并缓存它们。并根据编辑文本使用Linq从Cache对象中编写Webmethod来过滤它...
Hi.. Get all the Dictionary items and Cache them. and Write Webmethod to filter it using Linq from Cache object based on the edit text...


你好VinayT.Orbees

你能提供一个简单的代码抱歉但是我是android编程的新手

问候
Hi VinayT.Orbees
could you provide a simple code sorry but i'm new in android programming
regards


这篇关于如何拥有数千个项目,如何使过滤列表视图更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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