From what I understand, early in the preview stage there seemed to be no way to set elevation in XML only on CardViews without a hack in Java. Now that the offi
CardView
i am adding an app:cardElevation="8dp" attribute on card view, so it will be like :
Hope it will help