How to position a custom shape inside a view?
<p>I've defined a custom shape in my res/drawable folder:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="line"&gt;
    &lt;stroke
        android:color="#FF404040"
        android:width="1dp"
        android:dashGap="3dp"
        android:dashWidth="3dp"
    /&gt;
    &lt;size
        android:height="1dp"
    /&gt;
&lt;/shape&gt;
</code></pre>

<p>I'm using it as a background for one of my views. The shape is positioned vertically centered inside the view, but I want it to appear at the bottom of the view instead, is there a way to do this?</p>
