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
編集します。
<ph type="x-smartling-placeholder"></ph>
ウォッチフェイス オプション画面のリストから、ユーザーによる現在の選択に基づいて、テキストとグラフィック要素のセットを条件付きで表示できます。この要素は、ウォッチフェイス ファイルの別の場所で定義されるユーザー構成 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
が 1 つあります。この文字列は、先ほど定義したユーザー構成 ListConfiguration
の id
値と一致するはずです。
内部要素
ListConfiguration
要素には 1 つ以上の ListOption
内部要素を含める必要があります。各 ListOption
には id
値が含まれ、これらの ID 値は連続的に増加します(0
、1
、...)。各 ListOption
要素は、ウォッチフェイスのオプション画面でユーザーに表示される選択リスト内で、アイテムのゼロベースの位置に対応します。
各 ListOption
内部要素には、次のいずれかの要素を含められます。
あなたへのおすすめ
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2024-09-12 UTC。
[{
"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": "\u6700\u7d42\u66f4\u65b0\u65e5 2024-09-12 UTC\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 UTC。"]]