The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
GestureDetector.OneFingerScrollListener
Stay organized with collections
Save and categorize content based on your preferences.
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
|
|
Public Methods
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["This listener is triggered by continuous horizontal scrolling using one finger on the touch pad."],["It will not report events if two or more fingers were used after the initial touch."],["The `onOneFingerScroll` method provides scroll distance, change between events, and velocity."],["Returning `true` from `onOneFingerScroll` indicates the event was handled."]]],[]]