通用图像装载机重复使用的图片 [英] Universal Image Loader reuse images

查看:159
本文介绍了通用图像装载机重复使用的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用通用图像装载机,是有可能,直接将图像保存到磁盘和重复使用的应用程序?

Using Universal Image Loader, is it possible to directly save images to disk and reuse those images between different runs of the application?

我知道 imageLoader.displayImage(imageURI,itemHolder.image,期权); 从缓存中获取图像的第二次,但如果你退出该应用程序缓存中删除

I know imageLoader.displayImage(imageURI, itemHolder.image, options); gets images from the cache the second time, but if you exit the app the cache is removed.

我要显示图像的方法将图像保存到永久位置,并使用该位置的每个应用程序调用该方法的时间。

I want the display image method to save the image to a permanent location and use that location every time the app calls that method.

这可能使用通用图像装载机或做我需要找到另一种方式?

Is this possible using Universal Image Loader or do I need to find another way?

推荐答案

尝试使用

.discCache(new FileCountLimitedDiscCache(cacheDir, new Md5FileNameGenerator(), 1000)) 

在ImageLoaderConfiguration选项

option in ImageLoaderConfiguration

这为我工作。

这篇关于通用图像装载机重复使用的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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