I have recyclerView which insides cardView that has ImageView and it takes 70% height of its. So I have given corner radius to cardView. The bottom of cardView radius is shown but the problem is the top part which is covered by image is not taking the corner radius of cardView.
I tried these questions : question , question. But still the problem remains the same.
xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/card_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/_200sdp"
android:layout_marginRight="@dimen/_15sdp"
android:layout_marginLeft="15dp"
android:layout_marginTop="15dp"
card_view:cardCornerRadius="@dimen/_20sdp"
card_view:cardBackgroundColor="@color/White"
android:layout_marginBottom="@dimen/_10sdp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/party_image"
android:layout_width="@dimen/_160sdp"
android:layout_height="@dimen/_140sdp"
android:adjustViewBounds="true"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/party_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="13sp"
android:text="John Doe"
android:textColor="@color/colorPrimary"
android:gravity="center"
android:paddingBottom="8dp"
android:paddingTop="8dp"
/>
</LinearLayout>
</android.support.v7.widget.CardView>
My output image: https://i.stack.imgur.com/9kZi6.jpg