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>

*** ** * ** ***

A Group is a container for other elements. Child elements are rendered relative
to the position, size, angle, and color of the group.

## Syntax

```xml
<Group id="string" x="integer" y="integer" width="integer" height="integer"
          name="string" angle="float" pivotX="float" pivotY="float"
          alpha="integer" renderMode="SOURCE | MASK | ALL"
          tintColor="argb-color | rgb-color">
    <!-- Only the most common inner element is shown here. -->
    <PartText ... />
    ...
</Group>
```

## Attributes

The `Group` element has the following attributes:

### Required attributes

The following attributes are required:

`name`
:   The name of the group.

`x`, `y`, `width`, `height`

:   A collection of integers that specify the element's size and position.

    These attributes are [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

### Optional attributes

The following attributes are optional:

The `Group` element can optionally contain the following attributes:

`id`

A unique identifier for the group.

`pivotX`, `pivotY`

:   A two-dimensional pivot point about which the element rotates. Both values
    are floating-point numbers that are scaled to fit in the range $ \[0, 1\] $.

    These attributes are [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

`angle`

:   A number of degrees, clockwise, that the element should be rotated about its
    pivot point.

    This attribute is [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

`alpha`

:   Set the level of transparency that this element should have. A value of `0`
    indicates that the element should be completely transparent. A value of `255`
    indicates that the element should be completely opaque.

    This attribute is [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

`scaleX`

:   The horizontal scaling factor to apply to this element.

    This attribute is [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

`scaleY`

:   The vertical scaling factor to apply to this element.

    This attribute is [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

[`renderMode`](https://developer.android.com/training/wearables/wff/effects#clipping)

:   The element's render mode type. Possible values are: `SOURCE` (default),
    `MASK`, or `ALL`.

`tintColor`

:   Apply a tint color filter to the element. You must specify the color using
    either the ARGB format (`#ff000000` = opaque black) or the RGB format
    (`#000000` = black).

    From version 4, this attribute is [transformable](https://developer.android.com/training/wearables/wff/common/transform/transform).

[`blendMode`](https://developer.android.com/training/wearables/wff/effects#blend-mode)

:   Sets the [`blendMode`](https://developer.android.com/training/wearables/wff/effects#blend-mode) for drawing this `Group` (this element is
    treated as the *src*).

## Inner elements

The `Group` element can contain the following inner elements:

- [`Localization`](https://developer.android.com/training/wearables/wff/common/localization)
- [`Gyro`](https://developer.android.com/training/wearables/wff/common/transform/gyro)
- [`Launch`](https://developer.android.com/training/wearables/wff/common/launch)
- [`Transform`](https://developer.android.com/training/wearables/wff/common/transform/transform)
- [`Variant`](https://developer.android.com/training/wearables/wff/common/variant/variant)
- [`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)
- [`ScreenReader`](https://developer.android.com/training/wearables/wff/common/screen-reader)
- [`Condition`](https://developer.android.com/training/wearables/wff/common/condition)
- [`ListConfiguration`](https://developer.android.com/training/wearables/wff/group/configuration/list-configuration)
- [`BooleanConfiguration`](https://developer.android.com/training/wearables/wff/group/configuration/boolean-configuration)
- [`AnalogClock`](https://developer.android.com/training/wearables/wff/clock/analog-clock)
- [`DigitalClock`](https://developer.android.com/training/wearables/wff/clock/digital-clock)
- [`Reference`](https://developer.android.com/training/wearables/wff/common/reference/reference)

## Recommended for you

- Note: link text is displayed when JavaScript is off
- [PartImage](https://developer.android.com/training/wearables/wff/group/part/image/part-image)
- [PartDraw](https://developer.android.com/training/wearables/wff/group/part/draw/part-draw)