1.Activity中Bitmap的回收
public void recycleAllImages () {
Logger.d("---------recycleView=====::" + getClass().getSimpleName());
View decorView = getWindow().getDecorView();
recycleViewImages(decorView);
}
2.View中Bitmap的回收
if (view == null) {
return ;
}
Logger.d("---------recycleView=====:" + view.getClass().getSimpleName());
Drawable bgDrawable = view.getBackground();
if (bgDrawable != null && bgDrawable instanceof BitmapDrawable) {
BitmapDrawable bd = (BitmapDrawable) bgDrawable;