Android: XML draw custom rectangle with solid border of one color with fill of another
<p>I am using a custom rectangle as a background:</p>

<pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt;
    &lt;corners android:radius="20dp"/&gt;
    &lt;padding android:left="10dp" android:right="10dp" android:top="10dp" android:bottom="10dp"/&gt;
    &lt;solid android:color="#FFFFFF"/&gt;
&lt;/shape&gt; 
</code></pre>

<p>This gives me a nice card like shape, however I would like to have a solid black (or other color line around that). I am assuming what I need to do in my xml is create a black rectangle that is 1 point wider and taller than my current rectangle and then place the smaller white one over the top. I can do this with an extra frame layout in my main XML with framelayout and two different custom rectangles on top of each other nut this seem like it may over engineering the problem. Is there a way to do it in the one custom xml background drawable.</p>

<p>Thanks</p>