| setColumnStretchable() | ใช้กำหนดให้ column ณ ตำแหน่งที่กำหนด เป็นแบบ stretch |
|---|
method:setColumnStretchable ( int columnIndex, boolean isStretchable )
return type:void
content:ใช้กำหนดให้ column ณ ตำแหน่งที่กำหนด เป็นแบบ stretch
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TableLayout table_layout = new TableLayout ( this ); table_layout.addView ( new Button ( this ), 0 ); table_layout.setColumnStretchable ( 0, true ); setContentView ( table_layout ); } }