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
The answer is a combination of margin and padding of cardView and its parent.
Try like this:
...
And the result: