display-glasses-with-jetpack-compose-glimmer

Configure projected Android XR display glasses apps with Jetpack Compose Glimmer theming and focus navigation.

6.6k|388|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/android/skills --skill display-glasses-with-jetpack-compose-glimmer-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: display-glasses-with-jetpack-compose-glimmer
Source: https://github.com/android/skills/tree/main/xr/display-glasses-with-jetpack-compose-glimmer
Command: npx skills add https://github.com/android/skills --skill display-glasses-with-jetpack-compose-glimmer-android

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps you avoid common UI and interaction failures when building projected Android XR apps for display glasses, especially issues caused by additive displays, incorrect theming, and focus/input mismatches.

Core Features & Use Cases

  • Glimmer-first UI foundations for projected activities: Establishes the correct projected-activity setup and wiring so your UI renders on display glasses using Jetpack Compose Glimmer.
  • Additive-display compliance and legibility guardrails: Enforces a pure black mandatory background, minimum readable text size, and safe typography/contrast practices for transparent/variable real-world blending.
  • Glasses-optimized design patterns and input mapping: Covers one-thing-at-a-time layout guidance, bottom-aligned presentation, and focus/back behavior aligned with the glasses form factor.
  • Component and theming constraints for XR: Replaces Material theming usage with GlimmerTheme, specifies the Google Sans Flex typography configuration, and standardizes depth/shadow behavior instead of Material elevation.
  • Practical build workflow: Guides dependency setup, projected context/hardware access considerations, and system UI integration considerations for glasses notifications.

Quick Start

Use the display-glasses-with-jetpack-compose-glimmer skill to implement a Projected Activity UI that uses GlimmerTheme-wrapped Jetpack Compose Glimmer components with a pure black additive-display background and Google Sans Flex typography.

Frequently Asked Questions about display-glasses-with-jetpack-compose-glimmer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a projected Android XR UI for display glasses using Jetpack Compose Glimmer?

To build a projected Android XR UI for display glasses, wrap Jetpack Compose Glimmer components in GlimmerTheme, apply a pure black background for additive displays, and configure Google Sans Flex typography. You must also declare xr_projected display usage and implement one-dimensional focus navigation for glasses input.

Why does my projected XR UI text break legibility on additive displays?

Text breaks legibility on additive displays when using incorrect theming or contrast. To fix this, enforce a mandatory pure black root background, apply minimum readable text sizes, and use Google Sans Flex typography configured via createGoogleSansFlexTypography for safe variable real-world blending.

Can I use Material elevation and MaterialTheme for display glasses UI?

You cannot use Material elevation or MaterialTheme for display glasses UI. You must replace them with GlimmerTheme and use Glimmer-compatible depth and shadow handling to ensure your projected Android XR app renders correctly on the additive display.

How do I handle focus navigation and touch input for Android XR display glasses?

To handle focus navigation and touch input for Android XR display glasses, implement one-dimensional focus navigation and map touch or swipe actions directly to glasses input. Layouts should follow a one-thing-at-a-time pattern with bottom-aligned presentation and correct back behavior.

What dependencies do I need to set up a projected activity for display glasses?

To set up a projected activity for display glasses, you need to add Jetpack Compose Glimmer dependencies to your project. This allows you to establish the correct projected-activity setup and wiring so your UI renders properly using Glimmer components.

What is the correct typography configuration for Jetpack Compose Glimmer on display glasses?

The correct typography configuration for Jetpack Compose Glimmer on display glasses is Google Sans Flex. You must configure it using the createGoogleSansFlexTypography function to maintain legibility and compliance on transparent additive displays.