title: How to separate table rows with horizontal line programmatic-ally in android
body: <p>Created a table layout programmatically .it looks like this.<img src="https://i.stack.imgur.com/uoI42.png" alt="enter image description here"></p>
  
  <p>here i want to add horizontal line after each row,how to do it programmatically.
  sample code to create table layout</p>
  
  <pre><code>ScrollView scrollView = new ScrollView(this);
  TableLayout resultLayout = new TableLayout(this);
  resultLayout.setStretchAllColumns(true);
  resultLayout.setShrinkAllColumns(true);
  TableRow tablerowMostRecentVehicle = new TableRow(this);
  tablerowMostRecentVehicle.setGravity(Gravity.CENTER_HORIZONTAL);
  
  TextView textViewMostRecentVehicle = new TextView(this);
  textViewMostRecentVehicle.setText("Most Recent Vehicle Details");
  textViewMostRecentVehicle.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);
  textViewMostRecentVehicle.setTypeface(Typeface.SERIF, Typeface.BOLD);
  tablerowMostRecentVehicle.addView(textViewMostRecentVehicle);
  // ...
  resultLayout.addView(tablerowMostRecentVehicle);
  resultLayout.addView(tableRowRegistrationMark);
  resultLayout.addView(tableRowMakeModel);
  resultLayout.addView(tableRowColour);
  resultLayout.addView(tableRowChasisNo);
  resultLayout.addView(tableRowDateofFirstUse);
  resultLayout.addView(tableRowTypeofFuel);
  // ...
  </code></pre>