title: table layout wrapping text android
body: <p>I'm creating dynamic table. The first row is static.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#DEDEDE" &gt;
  &lt;TableLayout 
      android:id="@+id/TableLayout1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#DEDEDE" &gt;
  
      &lt;TableRow
          android:id="@+id/tableRow1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="@color/DarkGray" &gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/Black"
              android:background="@drawable/cell_shape"
              android:text="Аватар"
              android:textSize="16dp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/Black"
              android:background="@drawable/cell_shape"
              android:text="Выезд"
              android:textSize="16dp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/cell_shape"
              android:text="Откуда"
              android:textColor="@color/Black"
              android:textSize="16dp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/cell_shape"
              android:text="Куда"
              android:textColor="@color/Black"
              android:textSize="16dp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/Black"
              android:background="@drawable/cell_shape"
              android:text="М/Ц"
              android:textSize="16dp"
              android:textStyle="bold" /&gt;
      &lt;/TableRow&gt;
  
  &lt;/TableLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>the second one and other rows are dynamic, and they are filled programmatically</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableRow xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/TableRow1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#DEDEDE" &gt;
      &lt;ImageView
          android:id="@+id/imageStatus"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/cell_shape" /&gt;
  
      &lt;TextView
          android:id="@+id/textVuezd"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/cell_shape"
          android:text=""
          android:textColor="@color/Black"
          android:textSize="12dp" /&gt;
  
      &lt;TextView
          android:id="@+id/textOtkuda"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/cell_shape"
          android:text=""
          android:textColor="@color/Black"
          android:textSize="12dp" /&gt;
  
      &lt;TextView
          android:id="@+id/textKuda"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/cell_shape"
          android:text=""
          android:textColor="@color/Black"
          android:textSize="12dp" /&gt;
  
      &lt;TextView
          android:id="@+id/textSeatsPrice"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/cell_shape"
          android:text=""
          android:textColor="@color/Black"
          android:textSize="12dp" /&gt;
  
  &lt;/TableRow&gt;
  </code></pre>
  
  <p>I show this table as dialog and got this:  </p>
  
  <pre><code>http://www.autostarkiev.com.ua/gg.png
  </code></pre>
  
  <p>due to font size I can see only half of the whole table. How do I make text in text view wrap, so i can see the whole table?</p>