The ListConfiguration element has the following attributes:
Required attributes
The following attributes are required:
id
A unique identifier for the configuration value.
displayName
A resource ID corresponding to the text that is displayed in the watch
face editor.
defaultValue
The default configuration value used if the user does not explicitly change
the configuration in the watch face editor. This should be set to the id of
one of the inner ListOption elements.
Optional attributes
The following attributes are optional:
icon
A resource ID corresponding to the drawable resource which is shown in
the watch face editor.
screenReaderText
A resource ID corresponding to the text which is used if the user has
TalkBack enabled.
Inner elements
The ListConfiguration element can contain between 1 and 100 inner ListOption
elements.
ListOption Attributes
The ListOption element must contain the following attributes:
id
A unique identifier for the option value.
displayName
A resource ID corresponding to the text that is displayed in the watch
face editor.
The ListOption element can optionally contain the following
attributes:
icon
A resource ID corresponding to the drawable resource which is shown in
the watch face editor. This should have a maximum size of 400x400 px.
screenReaderText
A resource ID corresponding to the text which is used if the user has
TalkBack enabled.
Recommended for you
Note: link text is displayed when JavaScript is off
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\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nA List Configuration allows the user to select one item from a list when\ncustomizing the watch face in the watch face editor.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cListConfiguration id=\"string\" displayName=\"string\" icon=\"string\"\n screenReaderText=\"string\" defaultValue=\"string\"\n\u003e\n \u003cListOption id=\"string\" displayName=\"string\" screenReaderText=\"string\"\n icon=\"string\" /\u003e\n ...\n\u003c/ListConfiguration\u003e\n```\n\nAttributes\n----------\n\nThe `ListConfiguration` element has the following attributes:\n\n### Required attributes\n\nThe following attributes are required:\n\n`id`\n: A unique identifier for the configuration value.\n\n`displayName`\n: A resource ID corresponding to the text that is displayed in the watch\n face editor.\n\n`defaultValue`\n: The default configuration value used if the user does not explicitly change\n the configuration in the watch face editor. This should be set to the `id` of\n one of the inner `ListOption` elements.\n\n### Optional attributes\n\nThe following attributes are optional:\n\n`icon`\n: A resource ID corresponding to the drawable resource which is shown in\n the watch face editor.\n\n`screenReaderText`\n: A resource ID corresponding to the text which is used if the user has\n TalkBack enabled.\n\n\nInner elements\n--------------\n\nThe `ListConfiguration` element can contain between 1 and 100 inner `ListOption`\nelements.\n\n### ListOption Attributes\n\nThe `ListOption` element must contain the following attributes:\n\n`id`\n: A unique identifier for the option value.\n\n`displayName`\n: A resource ID corresponding to the text that is displayed in the watch\n face editor.\n\nThe `ListOption` element can optionally contain the following\nattributes:\n\n`icon`\n: A resource ID corresponding to the drawable resource which is shown in\n the watch face editor. This should have a maximum size of 400x400 px.\n\n`screenReaderText`\n: A resource ID corresponding to the text which is used if the user has\n TalkBack enabled.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [ListConfiguration](/training/wearables/wff/v2/user-configuration/list-configuration)\n- [Flavor](/training/wearables/wff/v2/user-configuration/flavor)\n- [Flavor](/training/wearables/wff/user-configuration/flavor)"]]