Glance Wear

  
Glance Wear to biblioteka do tworzenia widżetów na Wear OS
Najnowsza aktualizacja Wersja stabilna Wersja kandydująca do publikacji Wersja beta Wersja Alfa
11 lutego 2026 r. - - - 1.0.0-alpha03

Deklarowanie zależności

Aby dodać zależność od glance-wear, musisz dodać do projektu repozytorium Maven Google. Więcej informacji znajdziesz w artykule Repozytorium Maven Google.

Dodaj zależności dotyczące potrzebnych artefaktów w pliku build.gradle aplikacji lub modułu:

Odlotowe

dependencies {
    // Use to implement glance wears
    //TODO: Confirm these dependencies
    implementation "androidx.glance.wear:wear:1.0.0-alpha01"

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

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

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

Kotlin

dependencies {
    // Use to implement glance wears
    //TODO: Confirm these dependencies
    implementation("androidx.glance.wear:wear:1.0.0-alpha01")

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

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

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

Więcej informacji o zależnościach znajdziesz w artykule Dodawanie zależności kompilacji.

Opinia

Twoja opinia pomoże nam ulepszyć Jetpacka. Jeśli odkryjesz nowe problemy lub masz pomysły na ulepszenie tej biblioteki, daj nam znać. Zanim utworzysz nowy problem, zapoznaj się z dotychczasowymi problemami w tej bibliotece. Możesz oddać głos na istniejący problem, klikając przycisk gwiazdki.

Tworzenie nowego problemu

Więcej informacji znajdziesz w dokumentacji narzędzia Issue Tracker.

Wersja 1.0

Wersja 1.0.0-alpha03

11 lutego 2026 r.

Publikacja androidx.glance.wear:wear:1.0.0-alpha03androidx.glance.wear:wear-core:1.0.0-alpha03 Wersja 1.0.0-alpha03 zawiera te zmiany.

Zmiany w interfejsie API

Wersja 1.0.0-alpha02

28 stycznia 2026 r.

Publikacja androidx.glance.wear:wear:1.0.0-alpha02androidx.glance.wear:wear-core:1.0.0-alpha02 Wersja 1.0.0-alpha02 zawiera te zmiany.

Nowe funkcje

  • Zmiana mapowania FULLSCREEN na LARGE w parametrach widżetu (ad78d95)

Poprawki błędów

  • Naprawiono użycie DataStore, które uniemożliwiało wyświetlanie wielu instancji widżetu (474f3e4).

Wersja 1.0.0-alpha01

14 stycznia 2026 r.

Publikacja androidx.glance.wear:wear:1.0.0-alpha01androidx.glance.wear:wear-core:1.0.0-alpha01 Wersja 1.0.0-alpha01 zawiera te zmiany.

  • Glance Wear to biblioteka do tworzenia widżetów na Wear OS za pomocą RemoteCompose.