title: How to set the ScaleType on a LinearLayout's background image
body: <p>I have a linear layout like this:</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:orientation="vertical"
      android:gravity="center_horizontal"
      android:background="@drawable/bgapp" &gt;
  </code></pre>
  
  <p>What I need now is the possibility to set the background image <code>ScaleType</code> value in order to fill the screen everytime, this because I'm going to download the image and then I'm going to set it as background but without ScaleType the images will not keep it's aspect ratio based on the screen densities.</p>
  
  <p>What I found is this solution:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;bitmap
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:src="@drawable/bgapp"
      android:scaleType="centerCrop"
      android:gravity="bottom|left" /&gt;
  </code></pre>
  
  <p>But It doesn't work as expected.. Is there a way to set a <code>LinearLayout</code> <code>scaleType</code> property or do I need to change my layout?</p>