title: Adding data to the rows in Table layout
body: <p>Am trying to create an EPG kind of layout and i referred this
  (<a href="https://stackoverflow.com/questions/10695380/print-out-arraylist-content-in-android-tablelayout">Print out ArrayList content in Android TableLayout</a>)
  And my problem is when am trying to add rows, they are getting added as a new rows but i need those values to be added in existing rows. 
  Here is my XML file:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
  
  
      &lt;TableLayout
          android:id="@+id/myTableLayout"
          android:layout_width="match_parent"
          android:layout_height="354dp"
          android:background="#6495ED"
          android:stretchColumns="*" &gt;
  
  
       &lt;TableRow
              android:id="@+id/tablerow1"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
  
               &lt;TextView
                   android:id="@+id/textView1"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
  
                   android:text="Some Text " 
                  /&gt;
  
               &lt;TextView
               android:id="@+id/textView2"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
  
               android:text="Some Text"
                /&gt;
  
               &lt;TextView
               android:id="@+id/textView3"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
  
               android:text="Some Text" /&gt;
  
  
  
          &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>and my java file is</p>
  
  <pre><code>TableLayout table = (TableLayout) findViewById(R.id.myTableLayout);
              for(int i=0;i&lt;channel_arraylist.size();i++)
              {
  
                  TableRow tableRow2=new TableRow(VideoDatabase1.this);
                  localchannel1= channel_arraylist.get(i);
  
                    TextView tvid=new TextView(VideoDatabase1.this);
                    tvid.setText(""+Integer.toString(localchannel1.getID()));
               tableRow2.addView(tvid);
  
              table.addView(tableRow2);
  </code></pre>