Is it possible to set a background png on a view and anchor it to the top and not scale in Android?
<p>I have an image, say 16px from our designer.  I want to Set it as the background image on a view, but the view is larger than the image.  So I want to anchor the image at the top of the view, and then have the view fill in the bottom with a solid color.</p>

<p>Is this possible in the current version of android, 1.5_r3?</p>

<p>Here is what I have so far, but the image is scaling to take up the entire view, and I am not sure how to set the image as background and specify a solid color at the same time.  I suspect I need to wrap the view in a containing view which has the color specified, is that the best way to do it?</p>

<pre><code>&lt;RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="3dip"
style="@style/listItemStyle"&gt;...
</code></pre>

<p>Where listItemStyle is defined as:</p>

<pre><code> &lt;style
  name="listItemStyle"
  parent="@android:style/Widget.ListView"&gt;
   &lt;item name="android:background"&gt;@drawable/list_background&lt;/item&gt;
 &lt;/style&gt;
</code></pre>
