| addView ( child, index ) | ใช้เพิ่ม view เข้าไปใน Object ScrollView ณ ตำแหน่งที่กำหนด |
|---|
method:addView ( View child, int index )
return type:void
content:ใช้เพิ่ม view เข้าไปใน Object ScrollView ณ ตำแหน่งที่กำหนด
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); ScrollView scroll_view = new ScrollView ( this ); Button button = new Button ( this ); button.setText ( "Into BambooLabCode" ); scroll_view.addView ( button, 0 ); setContentView ( scroll_view ); } }