摘要:
内存缓存//需要导入外部jar文件 android-support-v4.jar import android.support.v4.util.LruCache; //开辟8M硬缓存空间 private final int hardCachedSize = 8*1024*1024; //hard cache private final LruCache<String, Bitmap> sHardBitmapCache = new LruCache<String, Bitmap>(hardCachedSize){ @Override public int sizeOf(S 阅读全文