CardView elevation not working on Android 5.1.1

前端 未结 5 1588
面向向阳花
面向向阳花 2021-01-01 07:18

I am using CardView inside a RecyclerView. After reading a lot I ended up with following \'NOT WORKING\' code only on Android 5.1.1. On Android Version prior to this one its

5条回答
  •  没有蜡笔的小新
    2021-01-01 08:02

    To make it both compatible above or below api 21, you need to specify app:cardUseCompatPadding="true" in your support CardView.

    
    
    

提交回复
热议问题