dependencies {
implementation 'com.android.support:cardview-v7:28.0.0'
}
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:elevation="4dp">
<!-- Add your content here -->
</android.support.v7.widget.CardView>