文件缓存

内存缓存:

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){}}

posted @ 2016-03-04 20:50  gentspy  阅读(169)  评论(0编辑  收藏  举报