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>

*** ** * ** ***

Draws a shadow near a text element.

Introduced in Wear OS 4.

## Syntax

```xml
<Shadow color="argb-color | rgb-color" offsetX="float"
        offsetY="float" radius="float">
</Shadow>
```

## Attributes

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

### Required attributes

The `color` attribute is required. 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][7].

### Optional attributes

The `Shadow` element can contain the following attributes:

`offsetX`

:   A floating-point number that specifies the distance that the shadow is shifted
    to the right of the text's center. Negative values indicate a shift to the left.

    By default, this attribute's value is `2.0`.

`offsetY`

:   A floating-point number that specifies the distance that the shadow is shifted
    down from the text's center. Negative values indicate a shift upward.

    By default, this attribute's value is `2.0`.

`radius`

:   A floating-point number that specifies the distance that the shadow extends
    beyond the edge of the text element.

    By default, this attribute's value is `2.0`.

## Inner elements

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

- [`Underline`](https://developer.android.com/training/wearables/wff/group/part/text/decoration/underline)
- [`StrikeThrough`](https://developer.android.com/training/wearables/wff/group/part/text/decoration/strike-through)
- [`InlineImage`](https://developer.android.com/training/wearables/wff/group/part/text/formatter/inline-image)
- [`Template`](https://developer.android.com/training/wearables/wff/group/part/text/formatter/template)
- [`Upper`](https://developer.android.com/training/wearables/wff/group/part/text/formatter/upper)
- [`Lower`](https://developer.android.com/training/wearables/wff/group/part/text/formatter/lower)
- \[`Transform`\]\[7\]

## Recommended for you

- Note: link text is displayed when JavaScript is off
- [Shadow](https://developer.android.com/training/wearables/wff/v2/group/part/text/decoration/shadow)
- [Outline](https://developer.android.com/training/wearables/wff/group/part/text/decoration/outline)
- [OutGlow](https://developer.android.com/training/wearables/wff/group/part/text/decoration/out-glow)