| setLines() | ใช้กำหนด จำนวนบรรทัด ให้กับ Object TextView |
|---|
method:setLines ( int lines )
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.setLines ( 1 ); setContentView ( text ); } }