Watch Face Format version <button value="5" default="">Version 5</button> <button value="4">Version 4</button> <button value="3">Version 3</button> <button value="2">Version 2</button> <button value="1">Version 1</button>

*** ** * ** ***

Allows for conditionally showing a set of text and graphical elements based on
the user's current true-or-false selection from a watch face options screen.
This element references a [user configuration `BooleanConfiguration`](https://developer.android.com/training/wearables/wff/user-configuration/boolean-configuration) element
that's defined elsewhere in the watch face file.

Introduced in Wear OS 4.

## Syntax

```xml
<!-- The ID doesn't need to be "showDate"; this is just an example. -->
<UserConfiguration>
    <BooleanConfiguration id="showDate" />
</UserConfiguration>
<!-- ... -->
<BooleanConfiguration id="showDate">
    <BooleanOption id="TRUE">
        <!-- Only the most common element is shown here -->
        <PartText ... />
    </BooleanOption>
    <BooleanOption id="FALSE" ... />
</BooleanConfiguration>
```

## Attributes

The `BooleanConfiguration` element has one required attribute, `id`. This is a
string that must match the `id` value of a previously-defined [user
configuration `BooleanConfiguration`](https://developer.android.com/training/wearables/wff/user-configuration/boolean-configuration).

## Inner elements

The `BooleanConfiguration` element can contain at most two `BooleanOption`
inner elements. Each `BooleanOption` contains an `id` value of either `TRUE` or
`FALSE`, and contains the graphical elements that should appear on the watch
face when the user selects either "true" or "false" from a watch face's options
screen, respectively.

Each `BooleanOption` inner element can contain one of the following elements:

- [`Group`](https://developer.android.com/training/wearables/wff/group/group)
- [`PartText`](https://developer.android.com/training/wearables/wff/group/part/text/part-text)
- [`PartImage`](https://developer.android.com/training/wearables/wff/group/part/image/part-image)
- [`PartAnimatedImage`](https://developer.android.com/training/wearables/wff/group/part/animated-image/part-animated-image)
- [`PartDraw`](https://developer.android.com/training/wearables/wff/group/part/draw/part-draw)
- [`Condition`](https://developer.android.com/training/wearables/wff/common/condition)
- [`AnalogClock`](https://developer.android.com/training/wearables/wff/clock/analog-clock)
- [`DigitalClock`](https://developer.android.com/training/wearables/wff/clock/digital-clock)

## Recommended for you

- Note: link text is displayed when JavaScript is off
- [Group](https://developer.android.com/training/wearables/wff/group/group)
- [ListConfiguration](https://developer.android.com/training/wearables/wff/group/configuration/list-configuration)
- [Complication](https://developer.android.com/training/wearables/wff/complication/complication)