Code example for TableRow.LayoutParams

0
	 */ 
	public TextView createCell() {
		TextView cell = new TextView(parent);
		cell.setLayoutParams(new LayoutParams(
				LayoutParams.FILL_PARENT,
				LayoutParams.WRAP_CONTENT));
		cell.setPadding(2, 0, 2, 0);
		return cell;
	} 
 
	/** 
	 * set TableLayout to work with 
	 * @param table 
	 */ 
	public void setTable(TableLayout table) {
		this.activitiesTable = table;
	} 
}