Everything worked well before starting using RoundedBitmapDrawable to round Bitmap
's corners.
After starting using RoundedBitmapDrawable
, I'm getting:
java.lang.ClassCastException: android.support.v4.graphics.drawable.RoundedBitmapDrawable21 cannot be cast to android.graphics.drawable.BitmapDrawable
Code:
BitmapDrawable bitmapDrawable = ((BitmapDrawable) imageView.getDrawable());