title: Make cells same width and height to fill the table
body: <p>I'm trying to learn how to use table layouts in android, this is my code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/tableLayout1"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;!-- 3 columns --&gt;
      &lt;TableRow
          android:id="@+id/tableRow3"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:padding="5dip" &gt;
  
          &lt;TextView
              android:id="@+id/textView2"
              android:text="Column 1" /&gt;
  
          &lt;Button
              android:id="@+id/button2"
              android:text="Column 2" /&gt;
  
          &lt;Button
              android:id="@+id/button3"
              android:text="Column 3" /&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>And this is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/h28gI.png" alt="enter image description here"></p>
  
  <p>How can I make the <code>TableRow</code> to fit the width of the <code>TableLayout</code> and the height to the <code>TableLayout</code> height? In simple words, I would like to have all columns with the same width and rows with the same height filling the <code>TableLayout</code>, is it possible? How?</p>