title: Android: how to have a centered background image in a view
body: <p>I'd like to use a small (icon size) image as the background for my view, but it gets stretched to fill all the view.</p>
  
  <p>Any solution (including some way to place a view under my current one and make the latter transparent) will be appreciated.</p>
  
  <p>Thanks !</p>
  
  <p>current code:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
    android:background="@drawable/icon"
    android:id="@+id/layout_main"
   &gt;
  </code></pre>