The Google Glass Explorer Edition SDK is deprecated. This documentation is no longer being maintained. If you're interested in developing Glass solutions for enterprise clients, visit the Google Glass Enterprise Edition developer documentation.

GestureDetector.OneFingerScrollListener

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