title: How to add colored border on cardview?
body: <p>I am new to Android and this is my first question here.</p>
  <p>I am trying to add a colored vertical border at the beginning of the cardview. How can I achieve it on xml ? I tried adding it with empty textview but it is messing up the whole cardview itself. Please check the picture link posted below for example.</p>
  <p><a href="https://i.stack.imgur.com/t4phC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/t4phC.png" alt="Colored boroder on cardview" /></a></p>
  <p><strong>activity_main.xml</strong></p>
  <pre><code>&lt;android.support.v7.widget.CardView
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      card_view:contentPadding=&quot;16dp&quot;
      card_view:cardElevation=&quot;2dp&quot;
      card_view:cardCornerRadius=&quot;5dp&quot;&gt;
  
      &lt;LinearLayout
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:orientation=&quot;vertical&quot;&gt;
  
          &lt;TextView
              style=&quot;@style/Base.TextAppearance.AppCompat.Headline&quot;
              android:layout_width=&quot;fill_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;Title&quot; /&gt;
  
          &lt;TextView
              style=&quot;@style/Base.TextAppearance.AppCompat.Body1&quot;
              android:layout_width=&quot;fill_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;Content here&quot; /&gt;
              
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  <p>Many thanks</p>