tags:

views:

55

answers:

0

I need to add table row by using Java code only (not XML design).

In that table row I have to add two textview fields. I use the code below.

 TableRow tblrow=new TableRow(this);
 tblrow.addView(Textview1);
 tblrow.addView(Textview2);

But it only displays Textview1. How to view both?

I am new to Android.