title: Android LinearLayout always full width
body: <p>I'm trying to design something like this for tablet devices</p>
  
  <p>-640x480 area (left bound)-------flexible empty width--------control area(right bound)-</p>
  
  <p>The flexible width is depending on the Tablet size bigger or smaller.
  The Scrollpanes are for debugging on mobile devices only.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:tools="http://schemas.android.com/tools"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/scrollView11"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" &gt;
  
      &lt;HorizontalScrollView
          android:id="@+id/scrollView12"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
  
          &lt;LinearLayout
              android:id="@+id/ll1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="#24476D" &gt;
  
              &lt;view
                  android:id="@+id/dmi"
                  android:layout_width="640dp"
                  android:layout_height="480dp"
                  android:layout_gravity="left"
                  android:layout_marginLeft="10dp"
                  android:layout_marginTop="20dp"
                  android:layout_weight="1"
                  class="com.example.ecorailnet.DMIView"
                  android:background="#8fc7ff" /&gt;
  
              &lt;TextView
                  android:id="@+id/empty_list_view"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="List view is empty"
                  android:visibility="gone" /&gt;
  
              &lt;view
                  android:id="@+id/cpp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="right"
                  android:layout_marginLeft="20dp"
                  android:layout_marginTop="20dp"
                  android:layout_weight="1"
                  class="com.example.ecorailnet.ControlPanel" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/HorizontalScrollView&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>And finally the situation now and what it should look like.</p>
  
  <p><a href="http://www7.pic-upload.de/14.08.12/tyswp1zydud7.png" rel="nofollow">NOW</a></p>
  
  <p><a href="http://www7.pic-upload.de/14.08.12/93c3pkpbtbyn.png" rel="nofollow">AFTER</a></p>
  
  <p>Thanks in advance</p>
  
  <p>Greetings</p>