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
Try putting this in your rootview:
xmlns:card_view="http://schemas.android.com/apk/res-auto"
and use this code for elevation:
card_view:cardElevation="10dp"