Файл макета с CardView в ConstraintLayout:
<androidx.cardview.widget.CardView
android:id="@+id/cardview"
android:layout_width="392dp"
android:layout_height="0dp"
app:cardElevation="32dp"
app:cardBackgroundColor="#000000"
app:layout_constraintDimensionRatio="H,16:9"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/eagle"
tools:ignore="contentDescription"/>
</androidx.cardview.widget.CardView>
Вот результат, слева на Android 4.4.2, API 19 VS, справа на Android 8, API26. Как вы можете видеть, результат API 19 обрезает изображение. В любом случае, чтобы атрибут CardViewElevation не врезался в контент API 19 или старше?
Вот URL-адрес изображения для тестирования: http://t.wallpaperweb.org/wallpaper/animals/1920x1080/Bald_Eagle_in_Flight_Alaska.jpg