title: Set LinearLayout's width inside TableRow to MATCH_PARENT
body: <p>I have a <code>TableLayout</code> with <code>MATCH_PARENT</code> for <code>width</code> and by code I add a <code>TableRow</code>, that inflates a <code>LinearLayout</code>, all have <code>MATCH_PARENT</code> for <code>width</code>.
  If I remove the <code>LinearLayout</code> and I add the <code>TextView</code> to the <code>TableRow</code> directly it works fine. But finally, <code>TableRow</code> has <code>WRAP_CONTENT</code> as width. How can I do it? This is my <code>TableLayout</code> xml:   </p>
  
  <pre><code>  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_marginBottom="7dp"
                      android:layout_marginLeft="10dp"
                      android:layout_marginRight="10dp"
                      android:layout_marginTop="7dp" &gt;
  
      &lt;TableLayout
                          android:id="@+id/tablaGremios"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:layout_alignParentLeft="true"
                          android:layout_alignParentRight="true"
                          android:layout_below="@+id/titulopantalla"
                          android:background="@color/blanco" &gt;
                      &lt;/TableLayout&gt;
  
                  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is the <code>LinearLayout</code> to inflate:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/bg_servicio"
      android:orientation="horizontal"
      android:weightSum="3" &gt;
  
      &lt;CheckBox
          android:id="@+id/cbGremioActivo"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="0.01" /&gt;
  
      &lt;View
          android:layout_width="1dip"
          android:layout_height="fill_parent"
          android:layout_marginRight="6dp"
          android:background="#e3e3e3" /&gt;
  
      &lt;TextView
          android:id="@+id/tvGremio"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1.6"
          android:textSize="10sp" /&gt;
  
      &lt;View
          android:layout_width="1dip"
          android:layout_height="fill_parent"
          android:layout_marginRight="6dp"
          android:background="#e3e3e3" /&gt;
  
      &lt;TextView
          android:id="@+id/tvComentario"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1.4"
          android:textSize="10sp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And the code</p>
  
  <pre><code>// Creo una fila por día en el objeto
                  final TableRow tbRowGremio = new TableRow(contexto);
  
                  tbRowGremio.setLayoutParams(new TableRow.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
                  tbRowGremio.setId((numeroFila));
                  LayoutInflater inflater = (LayoutInflater) contexto.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  View lineaAPintar = inflater.inflate(R.layout.filalistagremios, null);
                  lineaAPintar.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
                  final CheckBox cbGremioActivo = (CheckBox) lineaAPintar.findViewById(R.id.cbGremioActivo);
                  cbGremioActivo.setId(numeroFila);
                                 TextView tvGremio = (TextView) lineaAPintar.findViewById(R.id.tvGremio);
                  tvGremio.setText(gremioQueQuiereAnadir);
                  TextView tvComentario = (TextView) lineaAPintar.findViewById(R.id.tvComentario);
                  tvComentario.setText(etComentario.getText().toString());
                  tbRowGremio.addView(lineaAPintar);
                  tablaGremios.addView(tbRowGremio);
  </code></pre>