title: LinearLayout: TextViews at left, big ImageView at right
body: <p>i'm working on a LinearLayout but unfortunately it's not working as it should.
  The goal is to have a LinearLayout with two TextViews (one placed below the other) on the left side, and an ImageView on the right side.</p>
  
  <p>The ImageView should be as big as possible, the TextViews should take the remaining space.</p>
  
  <p>At the moment my layout XML is like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/layout_linearlayout"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:layout_margin="1dp"
  android:background="@drawable/background" &gt;
  
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_vertical"
      android:layout_marginLeft="2dp"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/layout1label"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="5dp"
          android:singleLine="true"
          android:text="1234"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;TextView
          android:id="@+id/layout2label"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="1234_label2"
          android:textSize="14dp" /&gt;
  &lt;/LinearLayout&gt;
  
  
  &lt;ImageView
      android:id="@+id/layout_image"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="center_vertical"
      android:layout_margin="2dp"
      android:layout_weight="1"
      android:adjustViewBounds="true"
      android:src="@drawable/ic_launcher" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>The part that isn't working: If the text in the TextViews is "too long", the ImageView gets shrinked. I want it exactly the other way round.</p>
  
  <p>Any solutions?</p>