| getCompoundDrawables() | ใช้คืนค่า เส้นขอบด้านซ้าย บน ขวา และล่าง ตามลำดับ โดยจะคืนมาในลักษณะของ Drawable |
|---|
method:getCompoundDrawables ( )
return type:Drawable [ ]
content:ใช้คืนค่า เส้นขอบด้านซ้าย บน ขวา และล่าง ตามลำดับ โดยจะคืนมาในลักษณะของ Drawable
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" ); Drawable [ ] borders = text.getCompoundDrawables ( ); setContentView ( text ); } }