CardView not showing shadow elevation

前端 未结 17 1314
广开言路
广开言路 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 17:02

    use this inside cardView to show shadow:

    app:cardElevation="4dp"
    app:cardMaxElevation="4dp"
    

提交回复
热议问题