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