title: Drawing A Title Bar At The Top Of A CardView
body: <p>I am trying to draw a title bar on the top of a card view.<br>
  This is what I am getting  (Also why is the text "Test Title Goes Here" not being drawn?</p>
  
  <p><a href="https://i.stack.imgur.com/Klnig.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Klnig.jpg" alt="https://imgur.com/cJqrzih"></a></p>
  
  <p>but I am looking for this</p>
  
  <p><a href="https://i.stack.imgur.com/2aaFt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2aaFt.jpg" alt="enter image description here"></a></p>
  
  <p>This is the xml I am using to get this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/card"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:innerRadius="0dp"
          android:shape="ring"
          android:thicknessRatio="1.9"
          app:cardCornerRadius="40dp"
          app:contentPadding="13dp"
          tools:layout_editor_absoluteY="35dp"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;TextView
                  android:id="@+id/header_when"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="#D3D3D3"
                  android:textColor="#000000"
                  android:textStyle="bold"
                  android:padding="8dp"
                  tools:text="Test Title Goes Here" /&gt;
  
              &lt;com.google.android.flexbox.FlexboxLayout
                  android:id="@+id/layout"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:alignContent="stretch"
                  app:alignItems="stretch"
                  app:flexDirection="row"
                  app:flexWrap="wrap"
                  app:justifyContent="flex_start"&gt;
  
              &lt;/com.google.android.flexbox.FlexboxLayout&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Any help is greatly appreciated</p>