title: Problem with a layout background image
body: <p>I am trying to set a image like background image in a layout (by xml or by code)</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/main_layout"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" 
      android:background="@drawable/my_image"&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>View myLayout= findViewById( R.id.main_layout);
  myLayout.setBackgroundResource(R.drawable.my_image);
  </code></pre>
  
  <p>My problem is than android fix the image in the all background screen, resizing and modifying the image ratio.</p>
  
  <p>How can I set a image, and that the image takes only the neccesary space? (without image resizing)</p>