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>

*** ** * ** ***

Contains information about a geometric transformation.

Introduced in Wear OS 4.

## Syntax

```xml
<Transform target="string" value="arithmetic-expression"
           mode="TO | BY">
    <Animation ... >
</Transform>
```

## Attributes

The `Transform` element has the following attributes. Some attributes are
required while others are optional.

### Required attributes

The following attributes are required:

`target`
:   The name of the element to transform. This must be a
    [transformable](https://developer.android.com/reference/wear-os/wff/common/transform/transform#transformable) attribute.

`value`
:   An [arithmetic expression](https://developer.android.com/training/wearables/wff/common/attributes/arithmetic-expression) that evaluates to a distance or new position.

### Optional attributes

The `mode` attribute is optional. It specifies whether you want to transform
an element `BY` a specific number of units or `TO` a specific position. The
default value is `TO`.

## Inner elements

Optionally, the `Transform` element can contain an [`Animation`](https://developer.android.com/training/wearables/wff/common/transform/animation) inner
element, to specify more detailed instructions about how the transformation
should appear on, move around, or disappear from the watch face.

## Transformable attributes

Different elements have different sets of attributes that support
transformations. Refer to the documentation for each element for further
details.

## Recommended for you

- Note: link text is displayed when JavaScript is off
- [Features and APIs Overview](https://developer.android.com/about/versions/11/features)
- [Variant](https://developer.android.com/training/wearables/wff/common/variant/variant)
- [Layouts and binding expressions](https://developer.android.com/topic/libraries/data-binding/expressions)