Make ImageView fit width of CardView

前端 未结 10 673
太阳男子
太阳男子 2020-12-04 11:00

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

10条回答
  •  情深已故
    2020-12-04 11:49

    I solved the problem with setting
    1) app:cardUseCompatPadding="false"
    2) setting a rounded imageView background

    
        
    
    

提交回复
热议问题