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.

Yash Sampat
  • 30,051
  • 12
  • 94
  • 120

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
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120