Here's the code snippet :
<androidx.cardview.widget.CardView
android:id="@+id/new_main_store_image_CV"
android:layout_width="@dimen/_250sdp"
android:layout_height="@dimen/_250sdp"
app:cardElevation="@dimen/_5sdp"
app:cardCornerRadius="@dimen/_15sdp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/new_main_store_label_TV"
app:layout_constraintVertical_bias="0.15">
<androidx.cardview.widget.CardView
android:id="@+id/new_main_store_image_CVCV"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="@dimen/_15sdp"
app:cardElevation="@dimen/_5sdp"
android:padding="@dimen/_5sdp">
<ImageView
android:id="@+id/new_main_store_image_IV"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/_5sdp"
android:scaleType="fitXY"/>
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
Here's the end result :
What I want is the appearance of the nested corner radius which would also affect the ImageView. I have provided cornerRadius properties to both card views but it's only visible for the parent card view and not for nested card view.