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.


Stay organized with collections Save and categorize content based on your preferences.
Added in API level XE12

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

Added in API level XE12

public abstract boolean onScroll (float displacement, float delta, float velocity)

Called while the user is scrolling after initial horizontal scroll.

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