Home / Market / display glasses with jetpack compose glimmer

display glasses with jetpack compose glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer. Don't use for audio-only AI glasses without a display, non-glasses Android XR headsets (spatial panels or 3D volumes with Jetpack Compose for XR), or phone and tablet Material 3 UIs.

skill★ 108832129 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: display-glasses-with-jetpack-compose-glimmer description: Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer. Don't use for audio-only AI glasses without a display, non-glasses Android XR headsets (spatial panels or 3D volumes with Jetpack Compose for XR), or phone and tablet Material 3 UIs. license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-10-17' keywords:

---

Glossary

| Term | Definition | |---|---| | Intelligent Eyewear | All-day wear, hands-free devices that provide access to information. Equipped with speakers, a camera, and a microphone. Some are audio-only (audio glasses), and some also have a display (display glasses). | | Display glasses | Audio glasses with the addition of a private display in lenses for glanceable visuals that harmonize with audio output. | | Jetpack Compose Glimmer | A Compose UI toolkit for building augmented Android XR experiences, optimized for display glasses. It provides components, theming, and behaviors for transparent displays. | | Projected Activity (Glasses Activity) | An Android Activity that runs on a host device (phone) but its UI and interactions are projected to a connected, intelligent eyewear device (audio or display glasses). | | Projected Device | An XR device connected to an Android-powered device (host). Host projects the application content to the Projected device and let users interact with it. | | GlimmerTheme | The root provider for styling tokens, including GlimmerColors, GlimmerTypography, and GlimmerShapes. | | Additive Display | A display technology where black (#000000) is rendered as 100% transparent. UI is built by adding light to the environment. Display glasses have an additive display. | | Augmented Experiences | Android XR experiences that enhance a user's focus and presence in the real world. They are lightweight and additive, helping users while they are on-the-go | | Visual Angle | A unit of measurement for perceived size in XR. The minimum readable text size is 0.6 degrees (approx. 18sp at 1 m). |

Prerequisites

activity for intelligent eyewear](https://developer.android.com/develop/xr/jetpack-xr-sdk/ai-glasses/first-activity).

Core Constraints

Limitations

1. Set up dependencies

your first activity for intelligent eyewear](https://developer.android.com/develop/xr/jetpack-xr-sdk/ai-glasses/first-activity). Use references/projectedcontext-source.md to launch the Glasses Projected activity on the Projected Device. Ensure that you specify android.hardware.display.category.XR_PROJECTED for the android:requiredDisplayCategory attribute in app manifest to tell the system that this is a projected activity.

for intelligent eyewear](https://developer.android.com/develop/xr/jetpack-xr-sdk/ai-glasses/first-activity). If there isn't already a method to launch the Glasses Activity, add a button to the existing mobile app UI labeled "Launch on Glasses" that uses ProjectedContext to launch the Glasses Activity on the glasses. Place the 'Launch on Glasses' button as a screen-level FloatingActionButton, in the TopAppBar, or in the top navigation bar to ensure users discover the projection capability. If the glasses aren't connected, disable the button. Don't launch the Glasses Activity on the phone, only on the display glasses. If it makes sense to automatically launch the Glasses Activity without an explicit launch button, then do so.

device capabilities at runtime for intelligent eyewear](https://developer.android.com/develop/xr/jetpack-xr-sdk/ai-glasses/check-capabilities).

intelligent eyewear](references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md).

intelligent eyewear](references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md).

2. Minimize and translate the UI

3. Map input controls

Compose Glimmer](references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/focus.md).

display glasses](references/android/design/ui/ai-glasses/guides/interaction/inputs.md)

4. Build with Jetpack Compose Glimmer

Jetpack Compose Glimmer is the UI toolkit for building augmented experiences on display glasses.

Key Features

Focus Management in Glimmer

Jetpack Compose Glimmer](references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/focus.md).

Implementing Glimmer Styles

Glimmer styles are accessed through the GlimmerTheme object. Use references/glimmertheme-source.md for reference.

| Category | Token | Value / Role | |---|---|---| | Color | primary | #9BBFFF (Focal color) | | Color | secondary | #4C88E9 (Focal color) | | Color | surface | #262626 (Transparent base - renders as transparent) | | Color | outline | #606460 (3.dp border color) | | Shape | Standard | RoundedCornerShape(36.dp) | | Shape | Small | RoundedCornerShape(12.dp) |

Typography Scale (Google Sans Flex)

Strict default: When creating Glimmer UI you must use Google Sans Flex unless a custom brand typeface is explicitly specified.

Variable Font Settings: As Google Sans Flex is a variable font, you must configure the following axes:

| Style Name | Size / Line-Height | Weight Axis | Width | Roundness | Optical size | |---|---|---|---|---|---| | Title Large | 30.sp / 36.sp | 725 | 100 | 100 | 9 | | Title Medium | 24.sp / 32.sp | 725 | 100 | 100 | 9 | | Title Small | 20.sp / 28.sp | 725 | 100 | 100 | 9 | | Body Large | 30.sp / 36.sp | 520 | 100 | 100 | 9 | | Body Medium | 24.sp / 32.sp | 520 | 100 | 100 | 9 | | Body Small | 20.sp / 28.sp | 520 | 100 | 100 | 9 | | Caption | 18.sp / 28.sp | 650 | 100 | 100 | 9 |

Depth Levels

Simulate depth on display glasses using shadows to establish a sense of hierarchy through varying levels of emphasis. The Jetpack Compose Glimmer controls use DepthEffect with 5 preset DepthEffectLevels. Use references/deptheffect-source.md and references/deptheffectlevels-source.md for reference.

Some examples:

| Level | Usage | |---|---| | level1 | Standard rest state for cards and persistent background UI. | |