how to add child to tablerow dynamically in android?
<p>I am new to android. I have to add table row in a dynamic manner.In that row i need to add two child(Textview).But it displays only one textview only(first one).
Here is my code</p>

<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TableRow;
import android.widget.TextView;

public class DynamicTextView extends Activity {
/** Called when the activity is first created. */

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    ScrollView sv = new ScrollView(this);
    LinearLayout ll = new LinearLayout(this);
    ll.setOrientation(LinearLayout.VERTICAL);
    sv.addView(ll);

    for(int i=0;i&lt;30;i++){
     TableRow tbrow=new TableRow(this);
     TextView tv1=new TextView(this);
     tv1.setText("Dynamic TextView");
     TextView tv2=new TextView(this);
     tv2.setText(" No : "+i);
     tbrow.addView(tv1);
     tbrow.addView(tv2);
     ll.addView(tbrow);
    }
    setContentView(sv);

  }
}
</code></pre>

<p>output is:</p>

<pre><code>   Dynamic TextView
   Dynamic TextView
   Dynamic TextView
   Dynamic TextView
   .........
   ..........
</code></pre>
