method:setOnHierarchyChangeListener ( ViewGroup.OnHierarchyChangeListener listener )
return type:void
content:ใช้กำหนด การดักฟังเหตุการณ์ เมื่อมีการ เปลี่ยนแปลงลำดับ
ที่ Object TableLayout
example:public class AndroidBamboo extends Activity implements OnHierarchyChangeListener
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
TableLayout table_layout = new TableLayout ( this );
table_layout.addView ( new Button ( this ), 0 );
table_layout.setStretchAllColumns ( true );
table_layout.setOnHierarchyChangeListener ( this );
setContentView ( table_layout );
}
public void onChildViewAdded ( View parent, View child )
{
}
public void onChildViewRemoved ( View parent, View child )
{
}
}