ListConfiguration

本頁是 https://github.ecodesamsung.com/DWF/dwf-renderer/blob/develop/specification/documents/1, https://github.ecodesamsung.com/DWF/dwf-renderer/blob/develop/specification/documents/2 的分支,以求達到文法準確性。


可根據使用者目前從錶面選項畫面中選取的清單項目,依特定條件顯示一組文字和圖形元素,同時也會參照錶面檔案另行定義的使用者設定 ListConfiguration 元素。

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

語法

<!-- The ID doesn't need to be "handColor"; this is just an example. -->
<UserConfiguration>
    <ListConfiguration id="handColor" />
</UserConfiguration>
<!-- ... -->
<ListConfiguration id="handColor">
    <ListOption id="0">
        <!-- Only the most common element is shown here -->
        <PartText ... />
    </ListOption>
    <!-- Subsequent "ListOption" elements have ID values of 1, 2, ... -->
    <ListOption id="1" ... />
</ListConfiguration>

屬性

ListConfiguration 元素包含必要屬性 id。這是一個字串,必須符合先前定義的使用者設定 ListConfigurationid 值。

內部元素

ListConfiguration 元素必須包含至少一個 ListOption 內部元素。每個 ListOption 都包含一個 id 值,這些 ID 值會依序遞增 (01、...)。在錶面選項畫面的選項清單中,每個 ListOption 元素會分別對應到特定項目的排序位置 (從 0 起算)。

每個 ListOption 內部元素可包含下列其中一個元素: