CardView not showing shadow elevation

前端 未结 17 1315
广开言路
广开言路 2020-12-14 16:32

I am working with cardviews but the problem is my CardView is not showing any elevation or shadow. I have already tried some of the methods suggested in stackoverflow answer

17条回答
  •  清歌不尽
    2020-12-14 16:48

    There are two things that helped me solve this problem:

    1. Setting this in the application tag of my manifest:

      android:hardwareAccelerated="false"
      
    2. File > Invalidate cache and restart

提交回复
热议问题