title: Set equal width of columns in table layout in Android
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2865497/xml-table-layout-two-equal-width-rows-filled-with-equally-width-buttons">XML Table layout? Two EQUAL-width rows filled with equally width buttons?</a>  </p>
  </blockquote>
  
  
  
  <p>I am using <code>TableLayout</code> to show list of data in 4 columns. </p>
  
  <p><strong><em>Problem description:</em></strong> </p>
  
  <p>I am unable to set equal width of all 4 columns, which are in my <code>TableLayout</code>. 
  I am putting my layout code, which I am using...</p>
  
  <pre><code>&lt;TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0"&gt;
          &lt;TableRow&gt;
              &lt;TextView android:text="table header1" android:layout_width="wrap_content" android:layout_height="wrap_content" 
                   android:textSize="10dip" android:textStyle="bold"/&gt;    
              &lt;TextView android:text="table header2" android:layout_width="wrap_content" android:layout_height="wrap_content" 
                  android:textSize="10dip" android:textStyle="bold"/&gt; 
              &lt;TextView android:text="table header3" android:layout_width="wrap_content" android:layout_height="wrap_content" 
                  android:textSize="10dip" android:textStyle="bold"/&gt; 
              &lt;TextView android:text="table header4" android:layout_width="wrap_content" android:layout_height="wrap_content" 
                  android:textSize="10dip" android:textStyle="bold"/&gt;         
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  </code></pre>
  
  <p><em>How should I rewrite this layout to show 4 columns with equal sizes?</em></p>