title: Android TableLayout With Different Column's Width In A Row
body: <p>I am trying to do my first complex GUI, but now i can't to solve this problem.</p>
  
  <p><img src="https://i.stack.imgur.com/XpOGc.png" alt="enter image description here"></p>
  
  <p>The first column of the first two rows only needs to contain the label, while the second column of the first two rows must occupy the remaining space.</p>
  
  <p>In this snapshot the problem that i noticed is that the first column is larger than i would like. </p>
  
  <p>This is the piece of code that implements that piece of layout.</p>
  
  <pre><code>...
  ...
  
  &lt;TableLayout 
          android:layout_width="match_parent"
          android:layout_height="wrap_content" 
          android:layout_margin="5dp"
          android:background="@drawable/linear_layout_background"
          android:stretchColumns="*"
          android:shrinkColumns="*"&gt;
  
         &lt;TableRow
          android:id="@+id/tableRow1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="20dp" &gt;
  
          &lt;TextView
              android:id="@+id/textViewPlateValueLabel"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/plateValue"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
          &lt;TextView
              android:id="@+id/productID"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/back"
              android:ems="5"
              android:text="@string/blank"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
          &lt;/TableRow&gt;
  
         &lt;TableRow
          android:id="@+id/tableRow2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="20dp" &gt;
  
             &lt;TextView
              android:id="@+id/ztlLabel"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/ztl"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
          &lt;TextView
              android:id="@+id/ztlShow"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/back"
              android:text="@string/blank"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
         &lt;/TableRow&gt;
  
         &lt;TableRow
          android:id="@+id/tableRow3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="20dp"
          android:gravity="center" &gt;
  
             &lt;TextView
              android:id="@+id/isAllowed"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/blank"
              android:background="@drawable/back"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
              &lt;/TableRow&gt;
  
     &lt;/TableLayout&gt;
     ...
     ...
  </code></pre>
  
  <p>In addition, since they are really impractical, I would like to ask you some advice on the best approaches to use than this.</p>