内存缓存:
存
HashMap<String,Bitmap>cache;
Bitmap bitmap;
cache.put(path,bitmap)
取:
cache.get(path)
weakedHashMap<String,xx>map;
while(true){
map.put(xx,xx);
文件缓存:
BitmapUtils{
save(bitmap,targetFile){}
//Bitmap loadBitmap(path){}}
原文:http://www.cnblogs.com/gentspy/p/5243402.html