Android: strecthing background
<p>I want to have a gradient on my app background. The picture is only ten pixels wide and I would like it to repeat horizontally. Then I have the background set to the color where the gradient ends vertically. In CSS I could easily do this by this code:</p>

<pre><code>background: url("bg.png") repeat-x #0f0f0f;
</code></pre>

<p>But I have no idea how to do this on android. I tried setting a bitmap but everytime I put it in the XML the app force closes on me and there doesn't seem to be "repeat-x" like option on it.</p>

<p>So what would be the best way to handle this?</p>
