简体   繁体   English

使用Android缓存中的图像管理自定义listView

[英]manage custom listView with images in android cache memory

I am taking the reference of already ask question Android - How do I do a lazy load of images in ListView 我正在参考已经问过的问题的Android-如何在ListView中进行图像的延迟加载

I want to manage all of this image data of listView in application cache memory not in HashMap. 我想在应用程序缓存中而不是在HashMap中管理listView的所有图像数据。 all the images are coming from server. 所有图像都来自服务器。 just like in Android market that is holding that data in cache memory and we can clear that from android Settings> applications> Manage application> my-application. 就像在Android市场中将数据保存在缓存中一样,我们可以从android设置>应用程序>管理应用程序> my-application中清除该数据。

so how to manage this custom listView? 那么如何管理此自定义listView?

Thanks in advance. 提前致谢。

It is not advisable to do so because that cache is located in the internal directory and is not good enough to store downloaded images because the cache should not exceed 1MB. 不建议这样做,因为该缓存位于内部目录中,并且不足以存储下载的图像,因为缓存不应超过1MB。 It is best to store the images in the SD Cards. 最好将图像存储在SD卡中。

Refer http://developer.android.com/guide/topics/data/data-storage.html 请参阅http://developer.android.com/guide/topics/data/data-storage.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM