BitmapDrawable bitmapDrawable = (BitmapDrawable) image1.getDrawable();
//如果图片还未回收,先强制回收该图片
if (!bitmapDrawable.getBitmap().isRecycled())
{
bitmapDrawable.getBitmap().recycle();
}为啥需要强制收回图片,我试过不强制收回,但有错误.
//如果图片还未回收,先强制回收该图片
if (!bitmapDrawable.getBitmap().isRecycled())
{
bitmapDrawable.getBitmap().recycle();
}为啥需要强制收回图片,我试过不强制收回,但有错误.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货