GestureDetector.OneFingerScrollListener

  • The GestureDetector.OneFingerScrollListener receives 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 onOneFingerScroll is called during scrolling and provides displacement, delta, and velocity information.

Added in API level XE21

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

Added in API level XE21

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
  • true if the events were handled