title: Set up a LinearLayout into an other LinearLayout with imagebackground
body: <p>I would like to set a background of my main layout and put content into it. 
  The problem: The content is set up to fill the whole background <strong>but it is completely compressed into a few pixels.</strong> </p>
  
  <p>UPDATE: I used a 9-patch image for my background. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>    &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"  
      android:gravity="center"
      android:background="@drawable/badgeandroid"
      android:layout_marginLeft="20sp"
      android:layout_marginRight="20sp"
      android:layout_marginBottom="20sp"
      &gt;
  
  
      &lt;LinearLayout 
      android:id="@+id/contentbadge"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"  
      android:gravity="center"
      android:layout_margin="10sp"
      &gt;
  
     &lt;TextView 
      android:id="@+id/text"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"   
      android:text="Your badge pocket is empty"
      android:textColor="#FFFFFF"
      android:textSize="25sp"
      android:textStyle="bold" 
      android:gravity="center"
     &gt;&lt;/TextView&gt;
  
      &lt;/LinearLayout &gt;
  
      &lt;/LinearLayout &gt;
  </code></pre>