Appcompat CardView and Picasso no rounded Corners

后端 未结 5 1116
孤独总比滥情好
孤独总比滥情好 2020-12-13 20:14

I do not know where Exactly i Should Adress this issue, if it is my fault, there is something in the Picasso Lib Wrong or in the Cardview Library.

Basicly i have a <

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 20:53

    It works for me like this:

    1. Replace the ImageView with RoundedImageView (https://github.com/vinc3m1/RoundedImageView).
    2. Set the riv_corner_radius attribute on the RoundedImageView to be the same as CardView's corner.
    3. Set cardPreventCornerOverlap to false on the CardView (app:cardPreventCornerOverlap="false").
    4. It looks the same on L and pre-L now.

提交回复
热议问题