| setHeight() | ใช้กำหนด ขนาดความสูง ของ Object TextView |
|---|
method:setHeight ( int pixels )
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.setHeight ( 60 ); setContentView ( text ); } }