机器人,负载如何偷懒的图像从URL和持久缓存他们在画廊窗口小部件? [英] Android, how to lazy load images from url and persistently cache them in gallery widget?

查看:97
本文介绍了机器人,负载如何偷懒的图像从URL和持久缓存他们在画廊窗口小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现一个Android画廊部件。 我问怎么懒(即在单独的线程)从网络载入图像,并持续缓存它们?这样就下来看,我有缓存的图像局部可用..​​.

I'm implementing an Android gallery widget. I'm asking how to lazy (i.e. in a separate thread) load images from the web and persistently cache them? So that on the next run I have the cached images locally available...

推荐答案

这是如何:

<一个href="http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview">Android - 如何做我做的ListView图像的延迟加载

检查在第二个答案的演示,帮助我大量!

Check the demo in the second answer, helped me massively!

这篇关于机器人,负载如何偷懒的图像从URL和持久缓存他们在画廊窗口小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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