Code example for TableRow

Methods: addView, setBackgroundColor

0
	} 
	private void addTableRow(final String rowTitle){
		this.addTableRow(rowTitle, R.color.gray01);
	} 
	private void addTableRow(final String rowTitle,final int colorId){
		TableRow tr = new TableRow(this);
		tr.setBackgroundColor(this.getResources().getColor( colorId));
		TestView tv = new TestView(this,null);
		tv.setTag(1);
		tv.setLableText(rowTitle);
		tr.addView(tv);
		tableLayout.addView(tr);
	} 
 
}