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
Lot of good answers, but sometimes just one doesn't work for all. here's the one that worked for me after a lot of looking around,
Add this line to your CardView
CardView
app:cardUseCompatPadding="true"
So your cardview looks like this
Hope that works! Happy coding!