BitmapDrawable drawable (BitmapDrawable)imageView.getDrawable(); Bitmap bmp = drawable.getBitmap(); if (null != bmp && !bmp.isRecycled()){
bmp.recycle();
bmp = null;
}
Android 销毁ImageView的bitmap
最新推荐文章于 2022-06-22 16:25:12 发布
BitmapDrawable drawable (BitmapDrawable)imageView.getDrawable(); Bitmap bmp = drawable.getBitmap(); if (null != bmp && !bmp.isRecycled()){
bmp.recycle();
bmp = null;
}