您的位置:首页 > 其它

文件缓存

2016-03-04 20:50 309 查看
内存缓存:

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){}}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: