Stay organized with collections
Save and categorize content based on your preferences.
Allows for conditionally showing a set of text and graphical elements based on
the user's current selection from a list on a watch face options screen.
This element references a user configuration ListConfiguration element
that's defined elsewhere in the watch face file.
The ListConfiguration element has one required attribute, id. This is a
string that must match the id value of a previously-defined user
configuration ListConfiguration.
Inner elements
The ListConfiguration element must contain at least one ListOption inner
element. Each ListOption contains an id value, and these ID values increase
sequentially (0, 1, ...). Each ListOption element corresponds to the
0-based position of an item within a
list of choices that the user sees on a watch face's options screen.
Each ListOption inner element can contain one of the following elements:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# ListConfiguration\n\n\u003cbr /\u003e\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nAllows for conditionally showing a set of text and graphical elements based on\nthe user's current selection from a list on a watch face options screen.\nThis element references a [user configuration `ListConfiguration`](/training/wearables/wff/user-configuration/list-configuration) element\nthat's defined elsewhere in the watch face file.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003c!-- The ID doesn't need to be \"handColor\"; this is just an example. --\u003e\n\u003cUserConfiguration\u003e\n \u003cListConfiguration id=\"handColor\" /\u003e\n\u003c/UserConfiguration\u003e\n\u003c!-- ... --\u003e\n\u003cListConfiguration id=\"handColor\"\u003e\n \u003cListOption id=\"0\"\u003e\n \u003c!-- Only the most common element is shown here --\u003e\n \u003cPartText ... /\u003e\n \u003c/ListOption\u003e\n \u003c!-- Subsequent \"ListOption\" elements have ID values of 1, 2, ... --\u003e\n \u003cListOption id=\"1\" ... /\u003e\n\u003c/ListConfiguration\u003e\n```\n\nAttributes\n----------\n\nThe `ListConfiguration` element has one required attribute, `id`. This is a\nstring that must match the `id` value of a previously-defined [user\nconfiguration `ListConfiguration`](/training/wearables/wff/user-configuration/list-configuration).\n\nInner elements\n--------------\n\nThe `ListConfiguration` element must contain at least one `ListOption` inner\nelement. Each `ListOption` contains an `id` value, and these ID values increase\nsequentially (`0`, `1`, ...). Each `ListOption` element corresponds to the\n0-based position of an item within a\nlist of choices that the user sees on a watch face's options screen.\n\nEach `ListOption` inner element can contain one of the following elements:\n\n- [`Group`](/training/wearables/wff/group/group)\n- [`PartText`](/training/wearables/wff/group/part/text/part-text)\n- [`PartImage`](/training/wearables/wff/group/part/image/part-image)\n- [`PartAnimatedImage`](/training/wearables/wff/group/part/animated-image/part-animated-image)\n- [`PartDraw`](/training/wearables/wff/group/part/draw/part-draw)\n- [`Condition`](/training/wearables/wff/common/condition)\n- [`AnalogClock`](/training/wearables/wff/clock/analog-clock)\n- [`DigitalClock`](/training/wearables/wff/clock/digital-clock)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Group](/training/wearables/wff/group/group)\n- [BooleanConfiguration](/training/wearables/wff/group/configuration/boolean-configuration)\n- [Complication](/training/wearables/wff/complication/complication)"]]