import androidx cardview code example Example: androidx cardview dependencies { implementation "androidx.cardview:cardview:1.0.0" }