2

Is there a way to check if a standard ScrollView is currently being scrolled?

Doesn't matter if the direction is upwards or downwards, i only need to check whether it's currently being scrolled at all.

Y.S
  • 29,283
  • 12
  • 91
  • 116
  • 1
    Do you need [OnScrollListener](http://developer.android.com/reference/android/widget/AbsListView.OnScrollListener.html) I think.... – Skizo-ozᴉʞS Feb 20 '15 at 10:19

1 Answers1

2

ScrollView in its current form does not provide a callback for detecting scroll events. There are two workarounds available:

1. Use a ListView and implement OnScrollListener.

2. Derive a custom class from the existing ScrollView implementation and extend it to provide callbacks for scroll events.

Community
  • 1
  • 1
Y.S
  • 29,283
  • 12
  • 91
  • 116