title: Android table layout formatting problems
body: <p>I can not get my TableLayout to fit inside the screen <code>when the text cell is large</code>, despite the text wraps <code>inside the cell</code>.</p>
  
  <p>This is my TableLayout. A simple two-rows, two-columns table. Left column cells are <code>multiline</code>. If the text of one of these cell is large enought to break in two lines, the column is stretched to fill the entire screen and the right columns is pushed out of the screen. </p>
  
  <p>Why? How can I force the full table to stay inside the screen?
  Any hint is welcomed.</p>
  
  <p>My TableLayout is the following:</p>
  
  <pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/myTableLayout"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &gt;
  &lt;TableRow&gt;
      &lt;TextView
          android:text="Account 4 with a very large name to see if it breaks  on two or more lines"
          android:singleLine="false"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          &gt;
      &lt;/TextView&gt;
      &lt;TextView
          android:text="$400.00"
          android:gravity="right"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          &gt;
      &lt;/TextView&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
      &lt;TextView
          android:text="Account 5"
          android:singleLine="false"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          &gt;
      &lt;/TextView&gt;
      &lt;TextView
          android:text="$400.00"
          android:gravity="right"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          &gt;
      &lt;/TextView&gt;
  &lt;/TableRow&gt;
  
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>The code to display the layout is basic:</p>
  
  <pre><code>public class AccountBrowserTest 
      extends Activity
  {
      public void onCreate(Bundle savedInstanceState) 
      {    
          super.onCreate(savedInstanceState);
  
          this.setContentView(R.layout.accountbrowser_test);
  
      }
  } 
  </code></pre>