I have a CardView aligned to the top of the screen. Inside the CardView, there is an ImageView and I just want to adjust the height of the right-hand side of the CardView just like in the image below. Is this possible?
<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintWidth_percent="1"
app:layout_constraintHeight_percent="0.4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:cardElevation="10dp"
app:cardCornerRadius="0dp">
<ImageView
android:id="@+id/bngCover"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/explore2"
android:scaleType="centerCrop"/>
</androidx.cardview.widget.CardView>