title: Table layout in android -Row sizing
body: <p>I have a table layout as shown.I have a lot of rows.
  I have used android:strechcolumns="1" to strech the second column of each row.This is the case everywhere.</p>
  
  <p>But in the fifth row I have 2 fields.I want them to occupy equal space.The row size should be same as that of the previous row.I want the overall size of the rows to remain the same as that on the screeshot.Also I have indicated in the screenshot the boundary within which all rows should lie .</p>
  
  <p>How can this be done?</p>
  
  
  
  <p></p>
  
  <pre><code>&lt;TableRow&gt;
      &lt;TextView
          android:gravity="right"
          android:paddingTop="10dip"
          /&gt;
      &lt;Spinner
      android:id="@+id/depot_name_spinner"/&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
      &lt;TextView 
       android:text="@string/product_name"
       android:paddingTop="10dip"
       android:gravity="right"/&gt;
      &lt;Spinner
      android:id="@+id/product_name_spinner"
       /&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
      &lt;TextView
          android:text="@string/date"
          android:gravity="right" /&gt;
      &lt;Button
      android:id="@+id/date_button" /&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
      &lt;TextView 
          android:text="@string/measure_ltr"
          android:gravity="right"
  
          /&gt;
      &lt;EditText
      android:id="@+id/ltr_text" 
      android:layout_width="50dip"/&gt;
       &lt;TextView 
          android:text="@string/measure_qts"
          android:gravity="right"
       /&gt;
        &lt;EditText
  
      android:id="@+id/qts_text"
       /&gt;  
  &lt;/TableRow&gt;
  </code></pre>
  
  <p></p>
  
  <p><img src="https://i.stack.imgur.com/hI9yX.png" alt="enter image description here"></p>
  
  <p>Thanks</p>