Page Summary
-
The
GestureDetector.ScrollListenerreceives continuous horizontal scrolling events regardless of the number of fingers used. -
The listener has one abstract method,
onScroll, which is called during horizontal scrolling after the initial scroll gesture. -
The
onScrollmethod provides parameters for displacement, delta, and velocity of the scroll event and returns true if the events were handled.
This listener receives continuous horizontal scrolling events independent of the finger count.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract boolean |
onScroll(float displacement, float delta, float velocity)
|
||||||||||
Public Methods
public abstract boolean onScroll (float displacement, float delta, float velocity)
Called while the user is scrolling after initial horizontal scroll.
Parameters
| displacement | distance between current event and first down event x value |
|---|---|
| delta | delta between two consecutive x motion events |
| velocity | velocity of current x motion event |
Returns
trueif the events were handled