| getCurrY() | ใช้คืนค่า ตำแหน่งแกน y ปัจจุบัน ของ scroll |
|---|
method:getCurrY ( )
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 current_y = scroller.getCurrY ( ); TextView text_view = new TextView ( this ); text_view.setScroller ( scroller ); setContentView ( text_view ); } }