Page Summary
-
The
GestureDetector.OneFingerScrollListenerreceives continuous one-finger horizontal scrolling events. -
This listener does not report events if more than one finger is on the touchpad after the initial touch.
-
The abstract method
onOneFingerScrollis called during scrolling and provides displacement, delta, and velocity information.
This listener receives continuous one finger horizontal scrolling events.
Note that this listener will not report scrolling events if there has been two or more fingers on the touch pad after the initial down event.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract boolean |
onOneFingerScroll(float displacement, float delta, float velocity)
|
||||||||||
Public Methods
public abstract boolean onOneFingerScroll (float displacement, float delta, float velocity)
Called while the user is scrolling after initial horizontal scroll.
Parameters
| displacement | distance between scroll state entering x value |
|---|---|
| delta | delta between two consecutive x motion events |
| velocity | velocity of current x motion event |
Returns
trueif the events were handled