title: Border with title in Android?
body: <p>We can use <code>shape</code> to create a simple border,for example I saw this code <a href="http://zaman91.wordpress.com/2010/12/30/android-how-to-create-rounded-border-or-background/" rel="nofollow noreferrer">here</a>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;corners android:radius="5dip" /&gt;
              &lt;solid android:color="@color/black" /&gt;
              &lt;stroke android:width="2dip" android:color="@color/white" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>But I need a border with a title like this image:</p>
  
  <p><img src="https://i.stack.imgur.com/iPNIJ.png" alt="enter image description here"></p>
  
  <p>How I can do that?</p>