Code example for TableLayout

Methods: setStretchAllColumns, setId, setLayoutParams

0
        new NetworkStuff2().execute("http://www.varsityhockey.co.nz/xml/example-points-table.xml");
         
    } 
     
    protected TableLayout buildResultTable(/*String name*/) {
    	TableLayout table = new TableLayout(this);
    	//table.setId(currentID++); 
    	table.setId(12345);
    	table.setLayoutParams(new LayoutParams(
    			LayoutParams.FILL_PARENT));
    	table.setStretchAllColumns(true);
    		 
    	return table;
    } 
     
    //protected TableRow buildResultTableHeadingRow(String headings[]) { 
    protected TableRow buildResultTableRow(String items[], Boolean heading) {
    	// create the table row with a new id 
        TableRow tr = new TableRow(this);
        tr.setId(currentID++); //XXX set this to be the team id?
        tr.setLayoutParams(new LayoutParams(