A resource ID corresponding to the text that is displayed in the companion.
Optional attributes
The following attributes are optional:
icon
A resource ID corresponding to the drawable resource which is shown in
the companion. This should have a maximum size of 360x360 px.
screenReaderText
A resource ID corresponding to the text which is used if the user has
TalkBack enabled.
Inner elements
The Flavor element must contain at least one Configuration element and can
optionally include ComplicationSlot elements.
The Configuration element references previously defined configuration
elements, such as BooleanConfiguration, using the id attribute. The
Configuration elements sets the chosen value for this configuration option
using the optionId attribute.
The ComplicationSlot element can be used to specify the
DefaultProviderPolicy for a given Flavor.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# Flavor\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nA Flavor specifies a set of configuration values, grouped as a preset.\nTypically, the user can choose from these Flavors in the companion app.\n\nA `Flavor` can include values for existing configurations, including the\nfollowing types:\n\n- `BooleanConfiguration`\n- `ColorConfiguration`\n- `ListConfiguration`\n- `ComplicationSlot`\n\n*Since version 2*\n\nSyntax\n------\n\n```xml\n\u003cFlavor id=\"string\" displayName=\"string\" icon=\"string\"\n screenReaderText=\"string\"\u003e\n \u003c!-- Flavor-specific child elements. --\u003e\n \u003cConfiguration ... /\u003e\n \u003cComplicationSlot .../\u003e\n\u003cFlavor/\u003e\u003e\n```\n\nYou can include `Flavor` elements within a `UserConfigurations` element,\nas shown in the following example: \n\n \u003cUserConfigurations\u003e\n \u003c!-- Configuration definitions go here --\u003e\n \u003cColorConfiguration id=\"themeColor\" ... /\u003e\n \u003c!-- ... --\u003e\n\n \u003c!-- The defaultValue is required. Set this attribute to the ID\n of the flavor that the system should show by default. --\u003e\n \u003cFlavors defaultValue=\"1\"\u003e\n \u003cFlavor id=\"1\" displayName=\"1st flavor\" icon=\"flavor_1_preview\"\u003e\n \u003cConfiguration id=\"themeColor\" optionId=\"0\"/\u003e\n \u003cComplicationSlot slotId=\"0\"\u003e\n \u003cDefaultProviderPolicy\n defaultSystemProvider=\"DAY_OF_WEEK\"\n defaultSystemProviderType=\"SHORT_TEXT\"/\u003e\n \u003c/ComplicationSlot\u003e\n \u003c/Flavor\u003e\n\n \u003cFlavor id=\"2\" displayName=\"2nd flavor\" icon=\"flavor_2_preview\"\u003e\n \u003cConfiguration id=\"themeColor\" optionId=\"1\"/\u003e\n \u003cComplicationSlot slotId=\"0\"\u003e\n \u003cDefaultProviderPolicy\n defaultSystemProvider=\"WATCH_BATTERY\"\n defaultSystemProviderType=\"SHORT_TEXT\"/\u003e\n \u003c/ComplicationSlot\u003e\n \u003c/Flavor\u003e\n \u003c/Flavors\u003e\n \u003c/UserConfigurations\u003e\n\nIn order to use `Flavors`, the following must be added to\n`res/xml/watch_face_info.xml`: \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cWatchFaceInfo\u003e\n ...\n \u003cMultipleInstancesAllowed value=\"true\" /\u003e\n \u003cFlavorsSupported value=\"true\" /\u003e\n \u003c/WatchFaceInfo\u003e\n\nAttributes\n----------\n\nThe `Flavor` element has the following attributes:\n\n### Required attributes\n\nThe following attributes are required:\n\n`id`\n: A unique identifier for the `Flavor`.\n\n`displayName`\n: A resource ID corresponding to the text that is displayed in the companion.\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 companion. This should have a maximum size of 360x360 px.\n\n`screenReaderText`\n: A resource ID corresponding to the text which is used if the user has\n [TalkBack](https://support.google.com/wearos/answer/7313945) enabled.\n\nInner elements\n--------------\n\nThe `Flavor` element must contain at least one `Configuration` element and can\noptionally include `ComplicationSlot` elements.\n\n- The `Configuration` element references previously defined configuration\n elements, such as `BooleanConfiguration`, using the `id` attribute. The\n `Configuration` elements sets the chosen value for this configuration option\n using the `optionId` attribute.\n\n- The `ComplicationSlot` element can be used to specify the\n `DefaultProviderPolicy` for a given `Flavor`.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Flavor](/training/wearables/wff/v2/user-configuration/flavor)\n- [ListConfiguration](/training/wearables/wff/user-configuration/list-configuration)\n- [ColorConfiguration](/training/wearables/wff/user-configuration/color-configuration)"]]