Why there is no space between CardViews on Lollipop?

前端 未结 4 550
小鲜肉
小鲜肉 2021-01-30 06:26

I try to use the CardView and it works well below 5.0, but looks strange on Lollipop.

\"enter

4条回答
  •  春和景丽
    2021-01-30 06:54

    Set this on a CardView:

    app:cardUseCompatPadding="true"
    

    From documentation:

    Add padding in API v21+ as well to have the same measurements with previous versions.

提交回复
热议问题