The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.


Stay organized with collections Save and categorize content based on your preferences.
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.

displacement distance between scroll state entering x value
delta delta between two consecutive x motion events
velocity velocity of current x motion event
  • true if the events were handled