| getYOffset() | ใช้คืนค่า ตำแหน่งแกน y ของ toast |
|---|
method:getYOffset ( )
return type:int
content:ใช้คืนค่า ตำแหน่งแกน y ของ toast
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); Toast toast = new Toast ( this ); toast.makeText ( this, "Welcome To BambooLabCode.com", Toast.LENGTH_LONG ).show ( ); int toast_y = toast.getYOffset ( ); } }