display-glasses-with-jetpack-compose-glimmer
Skill by android
Provides guidelines for building projected Android XR apps for display glasses with the Jetpack Compose Glimmer toolkit. It covers Glimmer design principles, workflows, and interaction models for developers building Augmented Experience apps.
Install display-glasses-with-jetpack-compose-glimmer
Built from the published package, never by AI.
git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/xr/display-glasses-with-jetpack-compose-glimmer ~/.claude/skills/display-glasses-with-jetpack-compose-gliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install display-glasses-with-jetpack-compose-glimmer in Claude Code
git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/xr/display-glasses-with-jetpack-compose-glimmer ~/.gemini/antigravity-cli/skills/display-glasses-with-jetpack-compose-gliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install display-glasses-with-jetpack-compose-glimmer in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives guidelines for building projected Android XR apps for display glasses with the Jetpack Compose Glimmer UI toolkit. It covers Glimmer design principles, development workflows, and interaction models for the glasses form factor. The source shows how to set up a projected activity in the manifest, launch it from a phone app, and apply GlimmerTheme with Google Sans Flex typography on a black background.
It also covers keeping the UI minimal and bottom-aligned, meeting color contrast targets, handling focus and hardware input, and building with Glimmer components such as cards, ActionCards, and ButtonGroups. It is aimed at developers building an Android XR Augmented Experience app for display glasses. The skill says not to use it for audio-only AI glasses, non-glasses Android XR headsets, or phone and tablet Material 3 UIs.
Written from the project's SKILL.md and checked against it.
What it can do
- Set up a projected activityConfigures AndroidManifest.xml with the XR_PROJECTED display category and launcher intent filter.
- Mobile app integrationLaunches the glasses activity from a phone app when a projected device is connected.
- Theming and black backgroundWraps UI in GlimmerTheme with Google Sans Flex typography on a black root background.
- Minimal UI layoutGuides bottom-aligned layouts that show one primary piece of information at a time.
- Focus and input handlingShows focus groups and initial focus setup for hardware controls on display glasses.
- Glimmer styles and depth effectsDescribes Glimmer color, shape, and typography tokens and DepthEffectLevels for surfaces.
- Cards and button groupsCovers Card, ActionCard, and ButtonGroup usage, including focus placement rules.
What you need
- Android compileSdk 37 or higher
- androidx.xr.glimmer:glimmer 1.0.0-alpha21 or later
- androidx.xr.glimmer:glimmer-google-fonts 1.0.0-alpha21 or later
- androidx.xr.projected:projected 1.0.0-alpha13 or later
Try asking
- Set up a projected Android XR activity for my display glasses app.
- Build a Glimmer card with a bottom-anchored primary action button.
- Apply GlimmerTheme with Google Sans Flex typography to my glasses UI.
Good to know
- Do not use MaterialTheme or Material 3 components inside Glimmer UI.
- Minimum text size is 18sp, and Thin or Hairline weights should be avoided.
- Never nest ButtonGroup inside a Card.
- Not for audio-only AI glasses, non-glasses XR headsets, or phone and tablet UIs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: xr/display-glasses-with-jetpack-compose-glimmer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md28 KB -
references/android/design/ui/ai-glasses/guides/interaction/inputs.md5 KB -
references/button-samples-source.md5 KB -
references/button-source.md10 KB -
references/card-samples-source.md10 KB
Show all 24 files
-
references/card-source.md52 KB -
references/deptheffect-source.md8 KB -
references/deptheffectlevels-source.md4 KB -
references/glimmersansflextypography-source.md11 KB -
references/glimmertheme-source.md8 KB -
references/icon-source.md17 KB -
references/iconbutton-source.md5 KB -
references/iconsizes-source.md3 KB -
references/list-source.md713 B -
references/listitem-source.md11 KB -
references/liststate-source.md18 KB -
references/material-hct-source.md6 KB -
references/projectedcontext-source.md14 KB -
references/stack-source.md16 KB -
references/stackitemscope-source.md16 KB -
references/stackstate-source.md13 KB -
references/surface-source.md29 KB -
references/titlechip-samples-source.md3 KB -
references/titlechip-source.md5 KB
Alternatives to display-glasses-with-jetpack-compose-glimmer
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
display-glasses-with-jetpack-compose-glimmer: common questions
Which devices is this skill for?
It is for projected Android XR apps on display glasses with an in-lens display. The source says not to use it for audio-only AI glasses or non-glasses Android XR headsets.
Can I use Material 3 in a Glimmer app?
No. The source says not to use MaterialTheme or Material 3 components inside Glimmer UI, and to use GlimmerTheme and Glimmer components instead.
What is the minimum text size for Glimmer?
The source sets the minimum text size at 18sp and advises avoiding Thin or Hairline font weights.
How do I install display-glasses-with-jetpack-compose-glimmer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is display-glasses-with-jetpack-compose-glimmer free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is display-glasses-with-jetpack-compose-glimmer safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to display-glasses-with-jetpack-compose-glimmer?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
