圖片

此元素可做為容器,容納相關的圖片資源集。每當定義的觸發條件發生時,就會顯示新的圖片。

這項元素已在 Wear OS 4 推出。

語法

<Images change="TAP | ON_VISIBLE | ON_NEXT_SECOND |
        ON_NEXT_MINUTE | ON_NEXT_HOUR">
    <!-- One or more image elements appear here. -->
    <Image ... />
</Images>

屬性

Images 元素有一個選用屬性 change。此屬性可定義要讓新圖片 (取自圖片集) 顯示在錶面上的必要條件:

* `TAP` (default): The change occurs when the user taps on the element.
* `ON_VISIBLE`: The change occurs when the element next becomes visible.
* `ON_NEXT_SECOND`: The change occurs when the next second begins.
* `ON_NEXT_MINUTE`: The change occurs when the next minute begins.
* `ON_NEXT_HOUR`: The change occurs when the next hour begins.

內部元素

Images 元素可將一或多個 Image 例項做為內部元素。