title: TableLayout column sizing
body: <p>I have a TableLayout with three columns that represents a form with </p>
  
  <p>requiredSymbol | label | inputfield.</p>
  
  <p>I want the input field to fill the remaining width of the screen right to the label. So far the only solution I found is this</p>
  
  <pre><code>&lt;TableLayout android:layout_height="wrap_content"
         android:layout_width="fill_parent" 
         android:stretchColumns="2"&gt;
      &lt;TableRow&gt;
                      &lt;TextView android:text="@string/requiredSymbol"
                                /&gt;
       &lt;TextView android:text="@string/Name"
                                android:textColor="@color/orange"
                                android:gravity="left|center_vertical"
           /&gt;
       &lt;EditText android:id="@+id/contactName"
           android:inputType="text|textPersonName"
                                android:ellipsize="end"
                              android:singleLine="true"
                              android:scrollHorizontally="true"
                              android:maxWidth="1sp"
                              /&gt;
      &lt;/TableRow&gt;
  </code></pre>
  
  <p>The maxWidth needs to be there are some value, which is actually ignored. Then the stretchColumns value does its thing nicely. Note that this also works if the content of the EditText would otherwise make the table span beyond the screen border (imho a bug..). </p>
  
  <p>This works nicely now but seems a little bit of a hack to me. Is there a better way?</p>