Can someone give me a simple example about the Scroller class? As far as I understand, it encapsulates scrolling, so I need to start the calculation, and then manually update the ScrollView to new positions. So I just try
Scroller scroller = new Scroller(getApplicationContext()); scroller.startScroll(0, 0, 10, 10, 500); for (int i = 0; i < 100; i++) { Log.d("scroller", scroller.getCurrX()+" "+ scroller.getCurrY()); }
All I have is just zeros. Where is my mistake?
Artem caritas
source share