https://developer.android.com/agents/skills/xr/display-ai-glasses-with-jetpack-compose-glimmer/skill

Create Android XR glasses UIs with Jetpack Compose Glimmer and GlimmerTheme.

5|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-xr-display-ai-glasses-with-jetpack-compose-glimmer-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https://developer.android.com/agents/skills/xr/display-ai-glasses-with-jetpack-compose-glimmer/skill
Source: https://github.com/fornewid/android-developers-changelog/tree/main/docs/agents/skills/xr/display-ai-glasses-with-jetpack-compose-glimmer
Command: npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-xr-display-ai-glasses-with-jetpack-compose-glimmer-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you build XR Display AI Glasses user interfaces that look correct on additive transparent displays, remain legible at required text sizes, and follow Jetpack Compose Glimmer’s interaction and theming rules.

Core Features & Use Cases

  • Projected Activity setup: Guides how to create and launch a dedicated Glasses Projected Activity on the connected AI glasses device (not on the phone).
  • Glimmer-first UI constraints: Enforces GlimmerTheme usage, prohibits MaterialTheme/Material Components, and specifies additive display handling (always pure black background).
  • XR interaction and visual hierarchy: Maps focus/inputs (tap/swipe/back), and recommends depth cues using Glimmer DepthEffect and token-driven styling.
  • Legibility and rendering safety: Applies constraints like minimum readable text size (18sp / 0.6°), avoids problematic font weights, and outlines color-contrast requirements.

Quick Start

Use the skill to implement a Glimmer-themed projected AI glasses UI inside a Glasses Projected Activity and ensure the root container uses Modifier.background(Color.Black) with minimum readable typography (18sp) and GlimmerTheme for all components.

Frequently Asked Questions about https://developer.android.com/agents/skills/xr/display-ai-glasses-with-jetpack-compose-glimmer/skill

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

FAQPage Schema
How do I render an Android XR UI on AI glasses using an additive display?

To render an Android XR UI on additive display AI glasses, create a dedicated Glasses Projected Activity launched via ProjectedContext on the connected glasses device, ensuring correct visual hierarchy and XR-specific layout constraints.

Does Android XR projected activity UI require a pure black background for AI glasses?

Yes, Android XR projected activity UIs on additive displays require a mandatory pure black background using Modifier.background(Color.Black) to ensure correct rendering on transparent AI glasses screens.

Can I use MaterialTheme when building Jetpack Compose Glimmer UIs for XR glasses?

No, you cannot use MaterialTheme when building Jetpack Compose Glimmer UIs for XR glasses. You must wrap all components in GlimmerTheme instead, prohibiting Material Components entirely.

What is the minimum readable text size for Android XR AI glasses interfaces?

The minimum readable text size for Android XR AI glasses interfaces is 18sp, equivalent to a 0.6-degree visual angle, ensuring legibility while avoiding problematic font weights and meeting color-contrast requirements.

How do I handle focus navigation and depth cues in an Android XR glasses UI?

Handle focus navigation in an Android XR glasses UI by mapping tap, swipe, and back inputs, and apply depth cues using Glimmer DepthEffect with token-driven styling to establish a depth-based visual hierarchy.

What typography should I use for Jetpack Compose Glimmer interfaces on XR displays?

Use Google Sans Flex typography for Jetpack Compose Glimmer interfaces on XR displays when needed, applying minimum readable text constraints and avoiding problematic font weights to maintain additive display legibility.