title: Rounded corners in a card view won't work at the bottom of image with a text view
body: <p>I am trying to get a card view so that I get a rounded corners image with a text under it but the thing is, when I add the text, since they are both inside of the rounded corners card view, the image is not rounded at the bottom (which is what I need). How would I accomplish that?</p>
  <p>This is the layout:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.cardview.widget.CardView
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;300dp&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_margin=&quot;16dp&quot;
      app:cardCornerRadius=&quot;16dp&quot;&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:orientation=&quot;vertical&quot;&gt;
  
                  &lt;ImageView
                      android:id=&quot;@+id/iv_news&quot;
                      android:layout_width=&quot;300dp&quot;
                      android:layout_height=&quot;200dp&quot;
                      android:src=&quot;@drawable/background_shape&quot;
                      android:scaleType=&quot;centerCrop&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/tv_title&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:text=&quot;@string/news_title&quot;
                      android:textColor=&quot;@color/black&quot;
                      android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;
                      android:textAlignment=&quot;center&quot;
                      android:layout_marginTop=&quot;5dp&quot;/&gt;
  
          &lt;/LinearLayout&gt;
  
  &lt;/androidx.cardview.widget.CardView&gt;
  
  </code></pre>
  <p>The image (I need the bottom corners of the image also rounded):
  <a href="https://i.stack.imgur.com/96M0n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/96M0n.png" alt="enter image description here" /></a></p>