ListView中的图像延迟加载

ListView中的图像延迟加载

本文介绍了ListView中的图像延迟加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个被广泛讨论的问题,但我想请教一个问题呢。我的列表(与BaseAdapters)在我的应用程序,所有这些都获得来自Web的图片。现在,我已经试过:

I know this is a widely discussed issue, but I'd like to ask a question anyway. I have lists (with BaseAdapters) in my app, all of which obtain images from the web. Now I've tried:

1),其中所述图像首先下载,存储到一个缓存,然后在onPostExecute方法显示AsyncTasks。图像被从缓存随后获得。

1) AsyncTasks in which the image is downloaded first, stored into a cache, and then displayed on the onPostExecute method. The image is obtained from the cache subsequently.

2)诺斯特拉的通用图像装载机

3)费多尔的 LazyList 。和;

3) Fedor's LazyList. And;

4)Novoda的 ImageLoader的

4) Novoda's ImageLoader.

所有这些方法都声称,使懒的图像加载。但问题是,我的列表的滚动仍然不顺畅。它被卡住,并继续当图像完成加载。现在我已经在这几天。有谁知道这个问题的一个很好的解决方案?

All of these methods claim to make the loading of images "lazy". But the problem is that the scrolling of my list still isn't smooth. It gets stuck and continues when the image completes loading. I've been at this for days now. Does anyone know of a good solution for this problem?

推荐答案

目前最简单的libaray我已经使用了缓存图像和作品真的很好是的库AQuery图像加载。我用它所有的时间用于图像加载和缓存,真的很简单。

By far the easiest libaray I have used which caches images and works really well is AQuery Image Loading Lib. I use it all the time for image loading and caching, really simple.

这篇关于ListView中的图像延迟加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 01:25