| setEnabled() | ใช้กำหนดสถานะของ Object ZoomButton ว่าต้องการให้ enable หรือ disable |
|---|
method:setEnabled ( boolean enabled )
return type:void
content:ใช้กำหนดสถานะของ Object ZoomButton ว่าต้องการให้ enable หรือ disable
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); ZoomButton zoom_button = new ZoomButton ( this ); zoom_button.setEnabled ( false ); setContentView ( zoom_button ); } }