본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)10k · #11941

display-glasses-with-jetpack-compose-glimmer

하는 일

이 스킬은 Jetpack Compose Glimmer 툴킷을 사용해 디스플레이 안경에 콘텐츠를 보여 주는 Android XR 앱을 만들기 위한 지침을 제공합니다. 안경을 위한 디자인 원칙, 작업 흐름, 상호작용을 다룹니다. 스마트 안경에서 한눈에 보는 경험을 만드는 Android 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓디스플레이 안경에 한눈에 볼 수 있는 콘텐츠를 보여 주는 Android XR 앱을 만들고 싶을 때.
  • ✓안경 화면에 Glimmer 테마와 컴포넌트가 필요할 때.
  • ✓디스플레이 안경 경험을 위해 글자 크기와 레이아웃을 계획하고 싶을 때.

스킬 링크

https://github.com/android/skills/blob/main/xr/display-glasses-with-jetpack-compose-glimmer/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/android/skills/blob/main/xr/display-glasses-with-jetpack-compose-glimmer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Compose Glimmer를 사용해 다음 회의를 디스플레이 안경에 보여 주는 간단한 Android XR 앱을 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 투영 액티비티를 설정하고 대상 SDK를 확인한 뒤, Glimmer 테마와 컴포넌트를 적용합니다. 읽기 쉬운 글씨와 초점 기반 상호작용을 위한 안경 디자인 원칙을 따릅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Glossary

Term Definition
Intelligent eyewear Hands-free eyewear with speakers, camera, and microphone (audio-only or display glasses).
Display glasses Eyewear with a private in-lens display for glanceable visuals that pair with audio.
Jetpack Compose Glimmer Compose UI toolkit providing components, theming, and focus behavior for display glasses.
Projected activity An Activity running on a phone host whose UI and input are projected to connected eyewear.
Projected device An XR eyewear device connected to an Android host phone that projects app content to it.
GlimmerTheme Root styling provider for GlimmerColors, GlimmerTypography, and GlimmerShapes.
Additive display Display where black (#000000) renders as 100% transparent by adding light to the scene.
Augmented experiences Lightweight, additive Android XR experiences that help users while they're on the go.
Visual angle Perceived size in XR; minimum readable text is 0.6 degrees (about 18sp at 1 m).

Prerequisites

  • Target compileSdk 37 or higher (compileSdk = 37 or compileSdk { version = release(37) }). Update compileSdk to 37 if lower.
  • When adding dependencies, follow the instructions in Create your first activity for intelligent eyewear:
    • androidx.xr.glimmer:glimmer (minimum 1.0.0-alpha21, or catalog alias libs.androidx.glimmer)
    • androidx.xr.glimmer:glimmer-google-fonts (minimum 1.0.0-alpha21, or catalog alias libs.androidx.glimmer.google.fonts)
    • androidx.xr.projected:projected (minimum 1.0.0-alpha13, or catalog alias libs.androidx.xr.projected or libs.androidx.projected)
    • Check gradle/libs.versions.toml first; if catalog entries exist, use them in app/build.gradle.kts and verify their versions meet the minimums. Never guess 1.0.0-alpha01 for glimmer-google-fonts.

Core constraints and limitations

  • Don't : Use MaterialTheme or Material 3 components (androidx.compose.material3.*) inside Projected Activities or Glimmer UI.
  • Do : Use GlimmerTheme and Glimmer components (androidx.xr.glimmer.*).
  • Do : Always pass createGoogleSansFlexTypography() from androidx.xr.glimmer.googlefonts as typography in GlimmerTheme.
  • Specific hardware device models or unique capabilities aren't detailed.
  • Elevation : Material 3 shadow or elevation modifiers aren't supported. Use ShadowScope or Depth tokens from Jetpack Compose Glimmer.
  • Typography limits: Minimum readable text size is 18sp (0.6°). Avoid "Thin" or "Hairline" weights, which shimmer on additive lenses.

1. Set up dependencies

  • Set up projected activity : When creating a projected activity, follow Create your first activity for intelligent eyewear and projectedcontext-source.md. Set android:requiredDisplayCategory to android.hardware.display.category.XR_PROJECTED in AndroidManifest.xml:

    <activity
        android:name="com.example.xr.projected.ProjectedMainActivity"
        android:exported="true"
        android:requiredDisplayCategory="android.hardware.display.category.XR_PROJECTED">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.XR_PROJECTED_LAUNCHER"/>
        </intent-filter>
    </activity>
    
    <br />
  • Mobile app integration : In the host phone app, add a button with Text("Launch on Glasses"). Observe ProjectedContext.isProjectedDeviceConnected(context, coroutineContext) using collectAsStateWithLifecycle(initialValue = false) to set the button's enabled state so it's disabled when glasses are disconnected. When clicked, launch GlassesMainActivity on the glasses display using ProjectedContext.createProjectedActivityOptions(context).toBundle() as shown in the following snippet:

    val options = ProjectedContext.createProjectedActivityOptions(context)
    val intent = Intent(context, ProjectedMainActivity::class.java)
    context.startActivity(intent, options.toBundle())
    
    <br />
  • UI library and font : When declaring the Glimmer, Google Fonts, and Projected artifacts in app/build.gradle.kts, follow [Declaring Jetp

자주 묻는 질문

어떤 compile SDK가 필요한가요?

프로젝트는 compileSdk 37 이상을 대상으로 해야 하며, 낮다면 스킬이 올립니다.

소리만 나는 안경에도 쓰나요?

아니요. 이 스킬은 디스플레이 안경용이며, 화면이 없는 오디오 전용 AI 안경은 제외됩니다.

투영 액티비티란 무엇인가요?

휴대폰에서 실행되고 연결된 안경에 인터페이스를 보여 주는 액티비티입니다.

상세 정보

작성자의 원본 설명

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.

repo: android/skills

인기도

GitHub 스타
10k
순위
#11941
라이선스
Apache-2.0
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬