method:TableRow.LayoutParams ( int column )
return type:TableRow.LayoutParams
content:ใช้สร้าง Object TableRow.LayoutParams โดยมีการกำหนดจำนวนของ column เอาไว้ด้วย
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
TableLayout layout = new TableLayout ( this );
TableRow row = new TableRow ( this );
TableRow.LayoutParams params = new TableRow.LayoutParams ( 3 );
row.addView ( new Button ( this ), params );
row.addView ( new Button ( this ), params );
row.addView ( new Button ( this ), params );
layout.addView ( row );
layout.setStretchAllColumns ( true );
setContentView ( layout );
}
}