在开始使用 RoundedBitmapDrawable 来圆角之前,一切都运行良好Bitmap。
开始使用后RoundedBitmapDrawable,我得到:
java.lang.ClassCastException:android.support.v4.graphics.drawable.RoundedBitmapDrawable21 不能转换为 android.graphics.drawable.BitmapDrawable
代码:
BitmapDrawable bitmapDrawable = ((BitmapDrawable) imageView.getDrawable());