title: Square shaped layout border with round inside edges
body: <p>I’m attempting to create a layout border with corners that are square on the outside and round on the inside. I’ve gathered that I need to create an .xml drawable definition composed of two shapes: one with a stroke width and corner radius and another with a stroke width only:</p>
  
  <p><strong>The drawables</strong></p>
  
  <p>round_border.xml</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;stroke android:width="4dp" android:color="#FF000000" /&gt;
      &lt;padding android:left="7dp" android:top="7dp"
              android:right="7dp" android:bottom="7dp" /&gt;
      &lt;corners android:radius="4dp" /&gt;
      &lt;solid android:color="#FFC0C0C0" /&gt;
  &lt;/shape&gt; 
  </code></pre>
  
  <p>square_border.xml</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;stroke android:width="2dp" android:color="#FF000000" /&gt;
      &lt;solid android:color="#FFC0C0C0" /&gt;
  &lt;/shape&gt; 
  </code></pre>
  
  <p>Each of these works independantly as a border when appliedby itself like so:</p>
  
  <pre><code>android:background="@drawable/round_border" 
  </code></pre>
  
  <p>but when they either or both are added to an item-list drawable like so:</p>
  
  <p>composite_border.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;layer-list&gt;
          &lt;item android:drawable="@drawable/round_border"/&gt;
          &lt;!-- &lt;item android:drawable="@drawable/square_border"/&gt; --&gt;
      &lt;/layer-list&gt;
  &lt;/shape&gt; 
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>android:background="@drawable/composite_border"
  </code></pre>
  
  <p>The layout's background is completely black instead of just a black border.</p>
  
  <p>Does anyone know how to make the layer list work for this task?</p>