title: How to add multiple columns in a row of an android table layout
body: <p>I have a custom list with name,age and grade .I want to loop through the list and show the contents in a table layout.Each row  will have following attributes.Row will have some kind of styling</p>
  
  <pre><code>  Name,
     Age,
     Age_Value,
     Grade,
     Grade_Value
  </code></pre>
  
  <p>Here Age and Grades are just a label.Given below is a sample table</p>
  
  <pre><code>Dolly
  Age
  23
  Grade
  A+
  
  Roman
  Age
  22
  Grade 
  C
  
  Ben
  Age
  23
  Grade
  B+
  </code></pre>
  
  <p>I want to add these details to the Table layout in my layout dynamically.</p>
  
  <p>Here is the code im trying</p>
  
  <pre><code> for(int j=0;j&lt;_attributeList.size();j++)
                        {
  
                            TableRow tr = new TableRow(MyActivity.this);
                            tr.setLayoutParams(new LayoutParams(
                                    LayoutParams.FILL_PARENT,
                                    LayoutParams.WRAP_CONTENT));
  
                                TextView tvName = new TextView(MyActivity.this);
                                tvName.setPadding(3,0,0,0);
                                tvName.setText(_attributeList.get(j).getName() +" : ");
                                tr.addView(tvName);
  
                                TextView tvAgeL = new TextView(MyActivity.this);
  
                                tvAgeL .setText("Age");
                                tr.addView(tvAgeL );
  
                                TextView tvAgeValue = new TextView(MyActivity.this);
                                tvAgeValue .setPadding(3,0,0,0);
                                tvAgeValue .setText(_attributeList.get(j).getValue() +" : ");
                                tr.addView(tvAgeValue );
  
  
  
                            attributeTable.addView(tr, new TableLayout.LayoutParams(
                                      LayoutParams.FILL_PARENT,
                                      LayoutParams.WRAP_CONTENT));
                       }
                      }
  </code></pre>
  
  <p>Since these items are adding to the same row im getting results in a single line. How can i show them in seperate rows</p>