| setCompoundDrawablePadding() | ใช้กำหนดค่า padding ระหว่าง compound drawable และ text |
|---|
method:setCompoundDrawablePadding ( int pad )
return type:void
content:ใช้กำหนดค่า padding ระหว่าง compound drawable และ text
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TextView text = new TextView ( this ); text.setText ( "WelCome To BambooLabCode.com" ); text.setCompoundDrawablePadding ( 5 ); setContentView ( text ); } }