views:

81

answers:

1

Hi all,

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

+1  A: 

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

Romain Guy
Yes, use the fully qualified class name. `<com.example.MyView ...>`
adamp
No such method. Overriding scrollTo(), however, does the trick.
Seva Alekseyev
Yes, there is such a method: http://developer.android.com/reference/android/view/View.html#onScrollChanged(int,%20int,%20int,%20int)
Romain Guy