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 got this to work by putting a RoundedImageView inside of a CardView. Also you need to set the appropriate CardView attributes.
RoundedImageView
https://medium.com/@etiennelawlor/layout-tips-for-pre-and-post-lollipop-bcb2e4cdd6b2#.kmb24wtkk