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
。這是一個字串,必須符合先前定義的使用者設定 ListConfiguration
的 id
值。
內部元素
ListConfiguration
元素必須包含至少一個 ListOption
內部元素。每個 ListOption
都包含一個 id
值,這些 ID 值會依序遞增 (0
、1
、...)。在錶面選項畫面的選項清單中,每個 ListOption
元素會分別對應到特定項目的排序位置 (從 0 起算)。
每個 ListOption
內部元素可包含下列其中一個元素:
為您推薦
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-09-12 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-09-12 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-09-12 (世界標準時間)。"]]