CardView elevation not working on Android 5.1.1

前端 未结 5 1577
面向向阳花
面向向阳花 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 07:40

    remove this line from in AndroidManifest.xml file

    android:hardwareAccelerated="false"
    

    change to

    android:hardwareAccelerated="true"
    

    for more details Hardware acceleration

提交回复
热议问题