title: Dynamic table layout in Android?
body: <p>I try to add a table layout from Java code. When there are two fields in a tablerow it displays the first field only. How to display the entire row with all fields?</p>
  
  <pre><code>  .....
    ....
    for(int idx=0;idx&lt;4;idx++){
        TableRow tbrow   = new TableRow(this);
  
        TextView text_v1 = new TextView(this);
        text_v1.setText("TextView");
  
        TextView text_v2 = new TextView(this);
        text_v2.setText(" Idx : "+idx);
  
        tbrow.addView(text_v1);
        tbrow.addView(text_v2);
  
        linearlayout.addView(tbrow);
    }
    .........
        ........
  </code></pre>
  
  <p>How to do this?</p>