| findViewWithTag() | ใช้ค้นหา View ที่อยู่ภายใน Object View นี้ ที่มี tag ตามที่กำหนด |
|---|
method:findViewWithTag ( Object tag )
return type:View
special:final
content:ใช้ค้นหา View ที่อยู่ภายใน Object View นี้ ที่มี tag ตามที่กำหนด
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); View view = new View ( this ); View sub_view_direct = view.findViewWithTag ( "header" ); setContentView( view ); } }