| getBaseline() | ใช้คืนค่า ตำแหน่ง แกน x ที่เป็น baseline ของ Object LinearLayout |
|---|
method:getBaseline ( )
return type:int
content:ใช้คืนค่า ตำแหน่ง แกน x ที่เป็น baseline ของ Object LinearLayout ( baseline คือ ด้านล่าง )
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); LinearLayout linear_layout = new LinearLayout ( this ); int baseline = linear_layout.getBaseline ( ); setContentView( linear_layout ); } }