I have a CardView with rounded corners, I want to have an ImageView at the top like shown in the example taken from the material design guidelines
CardView
ImageView
I solved the problem with setting 1) app:cardUseCompatPadding="false" 2) setting a rounded imageView background
app:cardUseCompatPadding="false"
imageView