图像

用于存放一组相关图像资源的容器。每次发生定义的触发器事件时,都会显示一张新图像。

此元素在 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 实例作为内部元素。