Custom horizontal progressbar
<p>Hey,
I just wrote a horizontal progress bar. The progressbar gets this background resource:</p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item android:id="@android:id/background"&gt;
    &lt;inset xmlns:android="http://schemas.android.com/apk/res/android"
        android:drawable="@drawable/progress_bg" /&gt;
&lt;/item&gt;
&lt;item android:id="@android:id/progress" android:gravity="center"&gt;
    &lt;clip&gt;
        &lt;shape&gt;
            &lt;corners android:radius="5dip" /&gt;
            &lt;solid android:color="#FFF" /&gt;
        &lt;/shape&gt;
    &lt;/clip&gt;
&lt;/item&gt;
</code></pre>

<p></p>

<p>This works fine, but the white progress has the same height as the background. But I want the progress to be smaller than the background of the progress bar, since thre background has a boarder that should not overlap.</p>

<p>Any ideas?
Thanks</p>
