title: Android TableLayout question: get a fixed-width right column?
body: <p>(<strong>Edited: I'm one step further than before</strong>)</p>
  
  <p>I've been trying to get a simple 2-column TableLayout going where I have a LinearLayout in my left column that I dynamically add elements to which fills up the horizontal space except for the fixed 100px right column.</p>
  
  <p>Here's what I have so far which works for me IF the LinearLayout contains more than one element. If it contains only one element, the right column is pushed out to the right of the screen </p>
  
  <pre><code> &lt;ScrollView android:layout_width="fill_parent"
               android:layout_height="fill_parent"
               xmlns:android="http://schemas.android.com/apk/res/android"
               android:id="@layout/main"&gt;
    &lt;TableLayout android:layout_width="fill_parent"
                 android:layout_height="fill_parent"&gt;
       &lt;TableRow&gt;
         &lt;LinearLayout android:id="@+id/LinearLayout01"
                           android:layout_width="fill_parent"
                           android:layout_height="fill_parent" 
                           android:layout_weight="0.4"
                           android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
      &lt;com.epaga.ArcDrawableView 
                           android:layout_width="fill_parent" 
                           android:layout_height="fill_parent" 
                           android:gravity="right" android:layout_weight="0.1" &gt;
         &lt;/com.epaga.ArcDrawableView&gt;
       &lt;/TableRow&gt;
     &lt;/TableLayout&gt;
   &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li>changing the drawable view (which is supposed to be the fixed column) to <code>android:layout_width="150px"</code></li>
  <li>changing the <code>stretchcolumns</code> setting to 0.</li>
  <li>changing the left columns' <code>layout_width</code> to either fill_parent (pushes the right column off the screen) or wrap_content (collapses the left column)</li>
  </ul>
  
  <p>Any thoughts?</p>