| getCompoundDrawablePadding() | ใช้คืนค่า padding ระหว่าง compound drawable และ text |
|---|
method:getCompoundDrawablePadding ( )
return type:int
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" ); int compound_drawable_padding = text.getCompoundDrawablePadding ( ); setContentView ( text ); } }