xr glimmer

  
TODO
最近更新時間 穩定版 候選版 Beta 版 Alpha 版
2025 年 11 月 5 日 - - - 1.0.0-alpha01

宣告依附元件

如要新增 xr glimmer 的依附元件,必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區

在應用程式或模組的 build.gradle 檔案中,新增所需構件的依附元件:

Groovy

dependencies {
    // Use to implement xr glimmers
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer:1.0.0-alpha01"

    // Use to implement xr glimmer complications
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-data-source:1.0.0-alpha01"
    // (Kotlin-specific extensions)
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-data-source-ktx:1.0.0-alpha01"

    // Use to implement a glimmer style and complication editor
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-editor:1.0.0-alpha01"

    // Can use to render complications.
    //TODO: Confirm these dependencies
    // This library is optional and glimmers may have custom implementation for rendering
    // complications.
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-rendering:1.0.0-alpha01"
}

Kotlin

dependencies {
    // Use to implement xr glimmers
    //TODO: Confirm these dependencies
    implementation("androidx.xr.glimmer:glimmer:1.0.0-alpha01")

    // Use to implement xr glimmer complications
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-data-source:1.0.0-alpha01"
    // (Kotlin-specific extensions)
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-data-source-ktx:1.0.0-alpha01"

    // Use to implement a glimmer style and complication editor
    //TODO: Confirm these dependencies
    implementation("androidx.xr.glimmer:glimmer-editor:1.0.0-alpha01")

    // Can use to render complications.
    //TODO: Confirm these dependencies
    // This library is optional and glimmers may have custom implementation for rendering
    // complications.
    //TODO: Confirm these dependencies
    implementation "androidx.xr.glimmer:glimmer-complications-rendering:1.0.0-alpha01"
}

如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。

意見回饋

您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。

建立新問題

詳情請參閱 Issue Tracker 說明文件

1.0.0-alpha01 版

2025 年 11 月 5 日

發布 androidx.xr.glimmer:glimmer:1.0.0-alpha01。1.0.0-alpha01 版包含這些修訂項目

新功能

  • Jetpack Glimmer 的初始開發人員版本,這是用於建構 Android XR 體驗的設計語言和 UI 元件。簡化樣式、區分焦點和最佳化高度,讓使用者清楚易讀,盡量減少干擾。
  • 歡迎使用我們的初始 Glimmer 元件集:
    • 文字
    • 圖示
    • Title Chips
    • 資訊卡
    • 清單
    • 按鈕
    • 堆疊 (開發中)