Android: how to listen for scrolling events?
Asked Answered
H

1

4

is there a way to establish a listener on the process of scrolling in a ScrollView or a HorizontalScrollView?

Hellman answered 21/6, 2010 at 18:16 Comment(0)
D
9

You can only create a class that extends ScrollView and override the onScrollChanged() method.

Deploy answered 21/6, 2010 at 22:0 Comment(3)
Yes, use the fully qualified class name. <com.example.MyView ...>Placida
No such method. Overriding scrollTo(), however, does the trick.Hellman
Yes, there is such a method: developer.android.com/reference/android/view/…Deploy

© 2022 - 2024 — McMap. All rights reserved.