I'm wondering why each card in my recyclerview has more shadow than the card before. Is this normal behaviour? if not, what causes this and how can i avoid it?
I can't find any information on this anywhere outside of an old stackoverflow post (Elevated RecyclerView items get progressively deformed (elevation changes))
The list item layout
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="280dp"
android:layout_height="180dp"
app:cardCornerRadius="20dp"
app:cardUseCompatPadding="true"
app:cardElevation="6dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>