CardView has extra margin in each edge on Pre-Lollipop

前端 未结 7 875
闹比i
闹比i 2020-12-24 14:05

Here are two pictures.

on Lollipop: \"on

on Pre-Lollipop:

7条回答
  •  死守一世寂寞
    2020-12-24 14:21

    I realise this has already been answered, but I'd like to add that in addition to card_view:cardPreventCornerOverlap="false", I also had to set CardView.setMaxCardElevation(0) to get rid of the margins on pre-Lollipop. Setting the elevation only to 0 did not work. I'm using support library v23.4.0.

提交回复
热议问题