| setTextColor() | ใช้กำหนด สีให้กับข้อความ ของ Object TextView |
|---|
method:setTextColor ( int color )
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" ); text.setTextColor ( Color.RED ); setContentView ( text ); } }