此元素可根據使用者目前從錶面選項畫面清單中選取的項目,有條件地顯示一組文字和圖形元素,並參照錶面檔案其他位置定義的使用者設定 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
這個必要屬性。這是一個字串。您可以在先前定義的使用者設定 ListConfiguration
中找到 id
值,而此字串必須與該值相符。
內部元素
ListConfiguration
元素必須包含至少一個 ListOption
內部元素,每個 ListOption
都包含一個 id
值,這些 ID 值會依序遞增 (0
、1
、...)。每個 ListOption
元素都會對應到使用者會在錶面選項畫面上看到的選項清單中,項目「從 0 開始」的位置。
每個 ListOption
內部元素都可包含下列其中一個元素:
為您推薦
- 注意:系統會在 JavaScript 關閉時顯示連結文字
- Group
- BooleanConfiguration
- PartText