| addView ( child, index ) | ใช้เพิ่ม Object View เข้าไปใน Object TableLayout ณ ตำแหน่งที่กำหนด |
|---|
return type:addView ( View child, int index )
method:void
content:ใช้เพิ่ม Object View เข้าไปใน Object TableLayout ณ ตำแหน่งที่กำหนด
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 ); setContentView ( table_layout ); } }