SkillsReviewed · android

Display Glasses with Jetpack Compose Glimmer

This is a coding-assistant skill for Android developers building apps for glasses with displays, but some instructions disagree with its included source references. It covers phone-to-glasses projection, Glimmer components, focus and hardware input, with specified dependencies on alpha Android XR libraries.

Researched 16 Nov 2026

In short.

This is a coding-assistant skill for Android developers creating apps for glasses with screens, but some instructions disagree with its included source references. It explains how a phone activity projects its interface to connected glasses and how Glimmer supports brief visuals and simple controls. The skill specifies compileSdk 37 or higher, Glimmer and Google Fonts artifacts at 1.0.0-alpha21 or higher, and projected at 1.0.0-alpha13 or higher. A concrete mismatch names ButtonDefaults.focusedColor where the included implementation and sample use calculateFocusedColor. It provides detailed guidance and snippets that require application-specific implementation. Compilation, device behavior and development-time savings are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is xr/display-glasses-with-jetpack-compose-glimmer at revision c72942584fff970dac86ced78b367fce0c441e52: SKILL.md and all 23 supplied reference documents, with repository-root LICENSE.txt as the related license notice. Embedded source copyright and license notices remain relevant. Other repository folders, externally linked documentation, remote images and font assets, published AndroidX binaries and a complete application project are outside this snapshot. Assistant loading, compilation and runtime behavior were not assessed; no resource code was executed.

The overview

What the resource is

Display Glasses with Jetpack Compose Glimmer is the skill folder xr/display-glasses-with-jetpack-compose-glimmer in android/skills. Its metadata names Google LLC as author. SKILL.md supplies instructions for an assistant, while accompanying reference documents contain Android interaction guidance, Kotlin implementation excerpts and samples.

The original source location is [https://github.com/android/skills/tree/main/xr/display-glasses-with-jetpack-compose-glimmer]. The supplied snapshot is pinned to revision c72942584fff970dac86ced78b367fce0c441e52. The skill concerns projected Android XR display-glasses interfaces; it is not itself a complete Android application.

Practical assessment

The resource is useful as a focused reference for a Glimmer prototype. Its strongest material explains decisions that differ from ordinary phone interfaces: limited visible content, indirect focus navigation, transparent black backgrounds and separating informational cards from multiple action buttons.

Treat generated code as requiring API review. The included source and samples help resolve details, but they also expose disagreements with SKILL.md. For example, the button guidance calls ButtonDefaults.focusedColor(baseColor), while both Button.kt and its sample expose ButtonDefaults.calculateFocusedColor. Compatibility with an actual dependency version remains unassessed.

Who it suits

It suits Android developers using a coding assistant to create lightweight experiences for display glasses connected to a host phone. Developers familiar with Kotlin and Compose can use its component parameters and implementation references directly. Beginners receive a glossary, but the examples assume knowledge of activities, Gradle dependencies, coroutines and Compose state.

Its stated scope excludes audio-only glasses, headset interfaces using spatial panels or 3D volumes, and phone or tablet Material 3 interfaces. The interaction guidance targets short gestures and visible feedback, with a readily available exit.

What it covers

The skill covers projected-activity declaration and launch, connection-aware phone controls, visual-capability checks, display-controller cleanup, Glimmer theming and initial focus. Its component guidance includes cards, button groups, toggle controls, title chips, lists, stacks, pagers, dialogs and custom surfaces. Voice-level indicators, indirect pointer gestures and notification integration are also addressed, although some topics rely on external documentation links.

The bundled references add implementation detail. List state supports immediate and animated scrolling. Icons inherit component sizing and content color, with supplied small, medium and large sizes of 32, 40 and 48 dp. IconButton represents an action, while the skill directs stateful controls toward toggle components.

Using it

Requirements

SKILL.md specifies compileSdk 37 or higher and the artifacts androidx.xr.glimmer:glimmer and androidx.xr.glimmer:glimmer-google-fonts at 1.0.0-alpha21 or higher, plus androidx.xr.projected:projected at 1.0.0-alpha13 or higher. These are the skill's stated requirements, not independently established current release recommendations. It directs developers to inspect gradle/libs.versions.toml before choosing dependencies.

The intended application needs an Android host phone and compatible connected display glasses. compileSdk identifies the SDK used to build the app; it does not establish the minimum supported runtime. ProjectedContext methods carry separate runtime API annotations, and its connection observer requires a CoroutineContext containing a CoroutineDispatcher. A complete minSdk policy, supported hardware list, compatible assistant list and assistant installation procedure are not supplied.

How it works

The skill supplies instructions and reference material for an assistant generating Android code. In the described application architecture, a host-phone activity projects its interface and input to eyewear. ProjectedContext creates launch options targeting the projected display and observes connection changes through virtual-device and display listeners. Its source recommends activity context because application context can switch device association.

Glimmer supplies shared styling and interaction feedback. Its theme provides colors, typography and spacing; the included implementation exposes shapes, depth levels and icon sizes through shared theme values. Surfaces draw backgrounds, borders and focus or press feedback. Custom interactive surfaces must share their interaction source with the focusable or clickable modifier.

The display model adds light, so black represents transparency. The skill therefore emphasizes a black root background, large readable text and brief bottom-aligned content. VerticalStack presents one main card with portions of following cards visible; its itemDecoration modifier supplies masking and depth behavior.

Getting started

Retain the complete skill folder so relative reference paths remain available. The supplied files do not establish an assistant-specific installation command. For the Android project, inspect existing dependency aliases and compare the chosen artifacts with the linked first-activity guide and Glimmer release documentation: [https://developer.android.com/develop/xr/jetpack-xr-sdk/ai-glasses/first-activity] and [https://developer.android.com/jetpack/androidx/releases/xr-glimmer].

The prescribed manifest declares an exported activity with requiredDisplayCategory set to android.hardware.display.category.XR_PROJECTED and the XR_PROJECTED_LAUNCHER category. The phone launch control observes connection state and uses ProjectedContext.createProjectedActivityOptions(context).toBundle().

The accompanying setup guidance calls for initial-focus configuration, GlimmerTheme with createGoogleSansFlexTypography(), and a black root background. Complete application-specific screens and lifecycle handling separately, and reconcile the prose with the shorter activity snippet before copying it.

A concrete example

The included ingredient-list example places a TitleChip labelled Ingredients in the title parameter of GlimmerLazyColumn and renders each ingredient through ListItem { Text(text) }. The supplied ListItem implementation makes this overload focusable; a separate onClick overload supports actionable rows. This demonstrates a list structure, without supplying application behavior such as editing or persistence.

For several actions associated with information, the card sample places Card(focusable = false) above a sibling ButtonGroup. For one primary action, ActionCard embeds a button and lets that action take focus. A separate title-chip sample demonstrates the theme-provided spacing above a card. The example button callbacks are empty.

Assessment & evidence

Limitations and discrepancies

The button helper name is a concrete API discrepancy: SKILL.md names ButtonDefaults.focusedColor, while the bundled source and sample use ButtonDefaults.calculateFocusedColor. Which API an installed dependency exposes must be resolved against that dependency.

The typography table differs from the bundled Google Sans Flex defaults. It specifies title weight 725 where the source defaults use 750, and caption line height 28 sp where the source uses 24 sp. These may represent intended overrides, but the resource does not explain that distinction. Its resting-depth prescription also differs from DepthEffectLevels documentation, which recommends no depth effect for most unfocused components.

Some snippets omit their surrounding instructions. The activity example uses GlimmerTheme without the prescribed typography argument and does not show the initial-focus flag or black root container. It references HomeScreen and GlassesLifecycleObserver without their implementations. The stack example omits the prescribed height and itemDecoration, although the included reference explains that decoration affects masking and depth.

The supplied material contains no executable app project or execution results. Compilation, hardware compatibility, display readability, battery use and speech behavior are not assessed. For custom controls, surface(enabled = false) changes decoration only; its source explicitly says this does not block input, so interaction modifiers need their own enabled handling.

Why these details matter

The likely benefit is more appropriate generated interfaces for glasses. The hardware guidance describes one-dimensional input, system-reserved gestures and immediate feedback. The card and focus rules address that interaction model directly: users need to identify the current action and leave the experience without remembering complicated gestures. This is a rationale for using the guidance, not a measured usability result.

The implementation references provide useful boundaries for expert customization. DepthEffect uses two shadow layers to express hierarchy. Stack state supplies programmatic scrolling and focus movement, while list-state documentation warns that observing frequently changing layout information directly in composition can cause excessive recomposition. These details support informed implementation, but do not establish performance in a finished app.

Other routes

The closest alternative identified by the skill is to work directly from Android documentation, including the first-activity guide and Glimmer component pages such as [https://developer.android.com/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/focus] and [https://developer.android.com/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/cards]. Those pages are linked by the resource, but their contents and current state are outside the supplied snapshot.

For a different device category, the skill itself distinguishes Jetpack Compose for XR headset interfaces and Material 3 phone or tablet interfaces. No competing assistant skill or comparative benchmark is supplied, so relative quality and completeness are unknown.

Evidence and its boundaries

The supplied snapshot contains SKILL.md, 23 reference documents within the selected folder and the repository-root LICENSE.txt. The references include interaction guidance, component samples and implementation excerpts covering projection, theming, typography, controls, lists, stacks, surfaces and color.

Evidence depth varies by topic. Buttons, cards and several other components have included implementation references. Pagers, dialogs, voice indicators and notification integration rely partly on guidance or external links without matching implementation files in this folder. Source text establishes described APIs and recommendations; it does not establish successful compilation or behavior on glasses.

Access & freshness

Costs

The supplied Apache 2.0 license grants no-charge copyright rights for the covered work. That does not establish the cost of using the complete development setup.

Assistant subscriptions or model usage, compatible glasses, a host phone, implementation effort and any speech-service charges are unspecified. Total setup and operating cost are unknown. No measured time savings or cost comparison is supplied.

Use and redistribution rights

SKILL.md points to LICENSE.txt, which supplies Apache License 2.0. The bundled implementation excerpts also carry Apache notices, including Android Open Source Project and Google copyright statements. The license permits reproduction, modification and redistribution subject to its conditions.

Redistribution requires a license copy and retention of applicable notices. Modified files need prominent change notices, and relevant NOTICE attributions must accompany derivative distributions if such a file is included. The license provides limited patent rights, excludes general trademark permission and disclaims warranties. Rights for remotely linked images, font assets and other external material are not established by the supplied repository notices.

Version and freshness

SKILL.md metadata records a last-updated date of 2026-11-13. The supplied snapshot was captured on 2026-11-16 at 17:17:19.683 UTC from revision c72942584fff970dac86ced78b367fce0c441e52. That identifies the source version described here; it does not establish the current state of the repository's main branch.

The specified Android XR artifacts have alpha version labels. Later releases, compatibility changes and whether the bundled excerpts exactly match a published artifact are unknown. Recheck dependency-specific APIs before adopting the snippets.

What to do before adopting it

First confirm that the intended product uses display glasses projected from a host phone. Keep the skill and reference folder together, choose explicit dependency versions, and reconcile the button helper, typography defaults and depth guidance with those versions.

Build a small projected interface with connection-aware launch, one primary action, readable text and a clear exit. Complete the missing screen and lifecycle implementations, then verify focus, disconnection, display sleep and wake, and system Back on the intended device. If adding voice input, establish permission handling, recognizer cleanup and service data handling separately. These are proposed adoption steps; their outcomes remain unassessed.

Evidence for this report

LICENSE.txtnotice · checked 2026-11-16