| addView ( child, params ) | ใช้เพิ่ม Object View เข้าไปใน Object TableLayout |
|---|
return type:addView ( View child, ViewGroup.LayoutParams params )
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 ); TableLayout.LayoutParams params = new TableLayout.LayoutParams ( 200, 30 ); table_layout.addView ( new Button ( this ), params ); setContentView ( table_layout ); } }