How to properly set elevation value to recyclerview?

后端 未结 4 1487
悲哀的现实
悲哀的现实 2021-01-01 18:41

I am working on grid layout using recyclerview in android. The grid occupies a portion of the screen and has a shadow. To get the desired shadow effect I am using an elevati

4条回答
  •  春和景丽
    2021-01-01 19:19

    The android:elevation does only apply shadows on devices which are running Lollipop or later. If you want to suppot older devices, you have to create a shadow yourself.

提交回复
热议问题