| getText() | ใช้คืนค่า ข้อความ ของ Object TextView |
|---|
method:getText ( )
return type:CharSequence
content:ใช้คืนค่า ข้อความ ของ Object TextView
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 text_data = text.getText ( ); setContentView ( text ); } }