场景

Scene 是一种视觉标记容器。每个表盘必须只包含一个 Scene 元素。

语法

<Scene backgroundColor="argb-color">
    <!-- Only the most common inner element is shown here. -->
    <Group ... />
    ...
</Scene>

属性

Scene 元素可以包含 backgroundColor 属性,此属性设置为 ARGB 颜色值,用于表示表盘场景的背景颜色。

如果此属性未定义或设置为无效值,系统将使用默认值 ##ff000000(不透明的黑色)。

内部元素

Scene 元素必须包含以下至少一个内部元素: