android shrink a background to the layouts size
<p>I want to shrink the background of a layout component to fit the actual contents. The background's will strech automatically but will not shrink.</p>

<pre><code>&lt;LinearLayout android:layout_height="wrap_content"
                android:orientation="vertical" android:layout_width="fill_parent"
                android:gravity="top" android:background="@drawable/background"
                android:paddingRight="10dp" android:paddingLeft="10dp" android:paddingTop="10dp"&gt;
</code></pre>
