Android – How to give your layout a 3D style?

Its pretty much simple just use android:rotationX property on the CardView
like this

    <com.google.android.material.card.MaterialCardView
        ...
        android:rotationX="20"
        ...

android:rotationX="20"android:rotationX="10"

Leave a Comment