title: Creating table layout and adding rows from the code behind in Android
body: <p>I need to create a table layout and add rows dynamically from Java code behind. I have already read questions here, but they are mentioning to add table rows in an already created table layout (from xml).</p>
  
  <p>I need to create the table layout as well as add data to it dynamically.
  Can anyone please provide some inputs?</p>
  
  <p>For now, I have linear layout code in place which adds button from code behind one below the other, I need to place it under a tabular format now.</p>