BitmapDrawable cannot be cast to RoundRectDrawableWithShadow
问题 I am trying to extend a cardview to set the background image. I know that this can not be done with normal cardview. I have searched net and found plenty of solutions for setting a background color to the card view but none for image. My code to do so: public class CCView extends CardView { public CCView (Context context) { super(context); init(); } public CCView (Context context, AttributeSet attrs) { super(context, attrs); init(); } public CCView (Context context, AttributeSet attrs, int