| setText ( text ) | ใช้กำหนด ข้อความ ให้กับ Object TextView |
|---|
method:setText ( CharSequence text )
return type:void
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" ); setContentView ( text ); } }