The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
com.google.android.glass.widget
Stay organized with collections
Save and categorize content based on your preferences.
Contains classes for Glass-themed UI widgets.
Interfaces
Slider.Determinate |
A determinate slider that tracks a position from left to right. |
Slider.GracePeriod |
A slider that animates from left to right during the given grace period in
timeInMs and then dismisses itself after running the appropriate callback. |
Slider.GracePeriod.Listener |
Listener call-backs. |
Slider.Indeterminate |
An indeterminate slider that animates continuously to indicate ongoing
but otherwise unknown progress. |
Slider.Scroller |
A scroll slider that indicates the current position within a fixed-size collection. |
Classes
Enums
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."],[[["\u003cp\u003eThe Glass Development Kit (GDK) was added in API level XE12 and provides UI widgets for creating Glassware.\u003c/p\u003e\n"],["\u003cp\u003eIt offers classes like \u003ccode\u003eCardBuilder\u003c/code\u003e, \u003ccode\u003eCardScrollAdapter\u003c/code\u003e, \u003ccode\u003eCardScrollView\u003c/code\u003e, and \u003ccode\u003eSlider\u003c/code\u003e for building cards and interactive elements.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize different slider appearances such as \u003ccode\u003eScroller\u003c/code\u003e, \u003ccode\u003eDeterminate\u003c/code\u003e, \u003ccode\u003eIndeterminate\u003c/code\u003e, and \u003ccode\u003eGracePeriod\u003c/code\u003e to enhance user experience.\u003c/p\u003e\n"],["\u003cp\u003eThe GDK includes interfaces for determinate, indeterminate, and grace period sliders, along with a listener for grace period events.\u003c/p\u003e\n"],["\u003cp\u003eEnums like \u003ccode\u003eCardBuilder.Layout\u003c/code\u003e and \u003ccode\u003eCardScrollView.Animation\u003c/code\u003e allow for customization of card layouts and animations.\u003c/p\u003e\n"]]],[],null,["# com.google.android.glass.widget\n\nAdded in API level XE12 \nContains classes for Glass-themed UI widgets.\n\n### Interfaces\n\n|-------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Slider.Determinate](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Determinate) | A determinate slider that tracks a position from left to right. |\n| [Slider.GracePeriod](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.GracePeriod) | A slider that animates from left to right during the given grace period in timeInMs and then dismisses itself after running the appropriate callback. |\n| [Slider.GracePeriod.Listener](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.GracePeriod.Listener) | Listener call-backs. |\n| [Slider.Indeterminate](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Indeterminate) | An indeterminate slider that animates continuously to indicate ongoing but otherwise unknown progress. |\n| [Slider.Scroller](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Scroller) | A scroll slider that indicates the current position within a fixed-size collection. |\n\n### Classes\n\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CardBuilder](/glass/develop/gdk/reference/com/google/android/glass/widget/CardBuilder) | The [CardBuilder](/glass/develop/gdk/reference/com/google/android/glass/widget/CardBuilder) class helps with building Glass-themed cards with various layouts. |\n| [CardScrollAdapter](/glass/develop/gdk/reference/com/google/android/glass/widget/CardScrollAdapter) | A special form of a [BaseAdapter](http://developer.android.com/reference/android/widget/BaseAdapter.html). |\n| [CardScrollView](/glass/develop/gdk/reference/com/google/android/glass/widget/CardScrollView) | A [View](http://developer.android.com/reference/android/view/View.html) that shows horizontally scrolling children views, referred to as cards. |\n| [Slider](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider) | A [Slider](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider) from which slider appearances can be drawn: [Slider.Scroller](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Scroller), [Slider.Determinate](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Determinate), [Slider.Indeterminate](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.Indeterminate), and [Slider.GracePeriod](/glass/develop/gdk/reference/com/google/android/glass/widget/Slider.GracePeriod). |\n\n### Enums\n\n|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [CardBuilder.Layout](/glass/develop/gdk/reference/com/google/android/glass/widget/CardBuilder.Layout) | Defines the visual layouts for cards. |\n| [CardScrollView.Animation](/glass/develop/gdk/reference/com/google/android/glass/widget/CardScrollView.Animation) | Defines animation type used to navigate to, insert, or delete a card. |"]]