| getStartY() | ใช้คืนค่า ตำแหน่งแกน y ที่เป็นจุดเริ่มต้น ของ scroll |
|---|
method:getStartY ( )
return type:int
content:ใช้คืนค่า ตำแหน่งแกน y ที่เป็นจุดเริ่มต้น ของ scroll
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); Scroller scroller = new Scroller ( this ); int start_y = scroller.getStartY ( ); TextView text_view = new TextView ( this ); text_view.setScroller ( scroller ); setContentView ( text_view ); } }