title: How to set a EditText in a certain column of a TableLayout?
body: <p>I have a <code>TableLayout</code> on one Android Activity UI. It has two columns. 
  Now I need to add a new row, and put an <code>EditText</code> box in second column of that new row. And also, I want that <code>EditText</code> to fill the whole cell. I have some code like this:</p>
  
  <pre><code>TableRow tr = new TableRow(context);
  EditText et = new EditText(context);
  et.SetMaxLines(4);
  etText.setLayoutParams(new TableRow.LayoutParams(1));  //set it to the second coloumn
  
  tr.addView(et);
  
  tl.addView(tr);   //tl is the tableLayout
  </code></pre>
  
  <p>It puts the <code>EditText</code> in the second column fine, but the <code>EditText</code> is too small. I tried to use </p>
  
  <pre><code>etText.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));  
  </code></pre>
  
  <p>but that seems to disabled the <code>TableRow.LayoutParams</code> setting. I guess each control can only have one <code>LayoutParams</code> setting. </p>
  
  <p>So, how to make the EditText as a 4 lines text editor and also make sure it is in the second column of that row? </p>
  
  <p>Thanks.</p>