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