Closed lixplor closed 7 years ago
解决办法: 加入选项
opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.RGB_565;
opt.inPurgeable = true;
opt.inInputShareable = true;
localImageOptions = new DisplayImageOptions.Builder()
.resetViewBeforeLoading(true)
.decodingOptions(opt)
.imageScaleType(ImageScaleType.EXACTLY)
.showImageForEmptyUri(R.mipmap.img_no_photos)
.showImageOnLoading(R.mipmap.img_no_photos)
.showImageOnFail(R.mipmap.img_no_photos)
.cacheInMemory(false)
.cacheOnDisk(false)
.considerExifParams(true)
.build();
UIL加载本地文件内存过大