Round corners for a shape with tiled background
<p>I need to create a View with rounded corners which uses a tiled image background. I've tried <code>layer-list</code> already but this doesn't work for me because <code>bitmap</code> is just placed on top of <code>shape</code> with rounded corners. Please advice. </p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item&gt;
        &lt;shape android:shape="rectangle" android:padding="10dp"&gt;
            &lt;corners android:bottomRightRadius="12dp"
                android:bottomLeftRadius="12dp"
                android:topLeftRadius="12dp"
                android:topRightRadius="12dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;
    &lt;item&gt;
        &lt;bitmap android:src="@drawable/profile_data_background_im"
            android:tileMode="repeat" /&gt;
    &lt;/item&gt;
&lt;/layer-list&gt;
</code></pre>
