# LayoutElementBuilders

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
class LayoutElementBuilders
```

<br />

*** ** * ** ***

Builders for composable layout elements that can be combined together to create renderable UI layouts.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` An arc container. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` A container that allows a standard `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` to be added to an `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc`. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAnchorTypeProp` An extensible `ArcAnchorType` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAnchorTypeProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAnchorTypeProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp` An extensible `ArcDirection` property that can be set to any curved element to control the drawing direction. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) interface https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` Interface defining the root of all elements that can be used in an `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` A line that can be used in an `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc` and renders as a round progress bar. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` A simple spacer used to provide padding between adjacent elements in an `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc`. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` A text element that can be used in an `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc`. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Box : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A container which stacks all of its children on top of one another. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Box.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Box`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ColorFilter` Filtering parameters used for images. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ColorFilter.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ColorFilter` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Column : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A column of elements. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Column.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Column`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp` An extensible `ContentScaleMode` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 500) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLayoutElement` A dashed arc line. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 500) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern` A dashed line pattern which describes how the dashed arc line is segmented by gaps. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) @https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ExperimentalProtoLayoutExtensionApi class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ExtensionLayoutElement : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A layout element which can be defined by a renderer extension. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ExtensionLayoutElement.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ExtensionLayoutElement`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 400) interface https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontSetting` Interface defining a single point of customization in a font. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle` The styling of a font (e.g. font size, and metrics). |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle` |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles` **This class is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography` on Material `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text` (highly recommended) or make your own `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle`. <br /> |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) @https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontVariantProp` An extensible `FontVariant` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontVariantProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontVariantProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontWeightProp` An extensible `FontWeight` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontWeightProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontWeightProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.HorizontalAlignmentProp` An extensible `HorizontalAlignment` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.HorizontalAlignmentProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.HorizontalAlignmentProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` An image. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Layout` A complete layout. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Layout.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Layout` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) interface https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` Interface defining the root of all layout elements. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Row : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A row of elements. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Row.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Row`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spacer : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A simple spacer, typically used to provide padding between adjacent elements. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spacer.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spacer`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) interface https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span` Interface defining a single `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanImage : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span` An image which can be added to a `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span`. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanImage.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanImage`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanText : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span` A portion of text which can be added to a `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span`. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanText.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanText`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanVerticalAlignmentProp` An extensible `SpanVerticalAlignment` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanVerticalAlignmentProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.SpanVerticalAlignmentProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spannable : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A container of `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span` elements. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spannable.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spannable`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp` An extensible `StrokeCap` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement` A text string. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text`. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextAlignmentProp` An extensible `TextAlignment` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextAlignmentProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextAlignmentProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextOverflowProp` An extensible `TextOverflow` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextOverflowProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.TextOverflowProp` |
| `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.VerticalAlignmentProp` An extensible `VerticalAlignment` property. |
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.VerticalAlignmentProp.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.VerticalAlignmentProp` |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ANGULAR_ALIGNMENT_CENTER() = 2` Align to the center of the container. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ANGULAR_ALIGNMENT_END() = 3` Align to the end of the container. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ANGULAR_ALIGNMENT_START() = 1` Align to the start of the container. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ANGULAR_ALIGNMENT_UNDEFINED() = 0` Angular alignment is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_ANCHOR_CENTER() = 2` Anchor at the center of the elements. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_ANCHOR_END() = 3` Anchor at the end of the elements. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_ANCHOR_START() = 1` Anchor at the start of the elements. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_ANCHOR_UNDEFINED() = 0` Anchor position is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_DIRECTION_CLOCKWISE() = 1` Draws an element in Clockwise direction, independently of layout direction. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_DIRECTION_COUNTER_CLOCKWISE() = 2` Draws an element in Counter Clockwise direction, independently of layout direction. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#ARC_DIRECTION_NORMAL() = 0` Draws an element in Clockwise direction for LTR layout direction and Counter Clockwise for RTL. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#CONTENT_SCALE_MODE_CROP() = 2` Content will be resized proportionally so it completely fills its bounds, and anything outside of the bounds will be cropped. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#CONTENT_SCALE_MODE_FILL_BOUNDS() = 3` Content will be resized to fill its bounds, without taking into account the aspect ratio. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#CONTENT_SCALE_MODE_FIT() = 1` Content will be scaled to fit inside its bounds, proportionally. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#CONTENT_SCALE_MODE_UNDEFINED() = 0` Content scaling is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_VARIANT_BODY() = 2` Font variant suited for body text. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_VARIANT_TITLE() = 1` Font variant suited for title text. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_VARIANT_UNDEFINED() = 0` Font variant is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_WEIGHT_BOLD() = 700` Bold font weight. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) @https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_WEIGHT_MEDIUM() = 500` Medium font weight. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_WEIGHT_NORMAL() = 400` Normal font weight. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#FONT_WEIGHT_UNDEFINED() = 0` Font weight is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_CENTER() = 2` Horizontally align to center. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_END() = 5` Horizontally align to the content end (right in LTR layouts, left in RTL layouts). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_LEFT() = 1` Horizontally align to the left. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_RIGHT() = 3` Horizontally align to the right. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_START() = 4` Horizontally align to the content start (left in LTR layouts, right in RTL layouts). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#HORIZONTAL_ALIGN_UNDEFINED() = 0` Horizontal alignment is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_BOTTOM() = 1` Align to the bottom of the line (descent of the largest text in this line). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_TEXT_BASELINE() = 2` Align to the baseline of the text. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_UNDEFINED() = 0` Alignment is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#STROKE_CAP_BUTT() = 1` Begin and end contours with a flat edge and no extension. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#STROKE_CAP_ROUND() = 2` Begin and end contours with a semi-circle extension. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#STROKE_CAP_SQUARE() = 3` Begin and end contours with a half square extension. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#STROKE_CAP_UNDEFINED() = 0` `StrokeCap` is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_ALIGN_CENTER() = 2` Align to the center of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_ALIGN_END() = 3` Align to the "end" of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element (right in LTR layouts, left in RTL layouts). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_ALIGN_START() = 1` Align to the "start" of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element (left in LTR layouts, right in RTL layouts). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_ALIGN_UNDEFINED() = 0` Alignment is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_ELLIPSIZE() = 4` Truncate the text to fit in the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element's parent bounds, but add an ellipsis (i.e. ...) to the end of the text if it has been truncated. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_ELLIPSIZE_END() = 2` **This property is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_ELLIPSIZE()` instead. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) @https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_MARQUEE() = 3` Enable marquee animation for texts that don't fit inside the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_TRUNCATE() = 1` Truncate the text to fit inside of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element's bounds. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_UNDEFINED() = 0` Overflow behavior is undefined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#VERTICAL_ALIGN_BOTTOM() = 3` Vertically align to the bottom. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#VERTICAL_ALIGN_CENTER() = 2` Vertically align to center. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#VERTICAL_ALIGN_TOP() = 1` Vertically align to the top. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#VERTICAL_ALIGN_UNDEFINED() = 0` Vertical alignment is undefined. |

## Constants

### ANGULAR_ALIGNMENT_CENTER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val ANGULAR_ALIGNMENT_CENTER = 2: Int
```

Align to the center of the container. As an example, if the container starts at 90 degrees, and has 180 degrees of sweep, and the contained element has 90 degrees of sweep, the element would draw between 135 and 225 degrees.

### ANGULAR_ALIGNMENT_END

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val ANGULAR_ALIGNMENT_END = 3: Int
```

Align to the end of the container. As an example, if the container starts at 90 degrees and has 180 degrees of sweep, and the contained element has 90 degrees of sweep, the element would draw between 180 and 270 degrees.

### ANGULAR_ALIGNMENT_START

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val ANGULAR_ALIGNMENT_START = 1: Int
```

Align to the start of the container. As an example, if the container starts at 90 degrees and has 180 degrees of sweep, the element within would draw from 90 degrees, clockwise.

### ANGULAR_ALIGNMENT_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val ANGULAR_ALIGNMENT_UNDEFINED = 0: Int
```

Angular alignment is undefined.

### ARC_ANCHOR_CENTER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val ARC_ANCHOR_CENTER = 2: Int
```

Anchor at the center of the elements. This will cause the center of the whole set of elements added to an arc to be pinned at the given anchor_angle.

### ARC_ANCHOR_END

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val ARC_ANCHOR_END = 3: Int
```

Anchor at the end of the elements. This will cause the set of elements inside the arc to end at the specified anchor_angle, i.e. all elements should be to the left of anchor_angle.

### ARC_ANCHOR_START

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val ARC_ANCHOR_START = 1: Int
```

Anchor at the start of the elements. This will cause elements added to an arc to begin at the given anchor_angle, and sweep around to the right.

### ARC_ANCHOR_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val ARC_ANCHOR_UNDEFINED = 0: Int
```

Anchor position is undefined.

### ARC_DIRECTION_CLOCKWISE

Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
@RequiresSchemaVersion(major = 1, minor = 300)
const val ARC_DIRECTION_CLOCKWISE = 1: Int
```

Draws an element in Clockwise direction, independently of layout direction.

### ARC_DIRECTION_COUNTER_CLOCKWISE

Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
@RequiresSchemaVersion(major = 1, minor = 300)
const val ARC_DIRECTION_COUNTER_CLOCKWISE = 2: Int
```

Draws an element in Counter Clockwise direction, independently of layout direction.

### ARC_DIRECTION_NORMAL

Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
@RequiresSchemaVersion(major = 1, minor = 300)
const val ARC_DIRECTION_NORMAL = 0: Int
```

Draws an element in Clockwise direction for LTR layout direction and Counter Clockwise for RTL.

### CONTENT_SCALE_MODE_CROP

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val CONTENT_SCALE_MODE_CROP = 2: Int
```

Content will be resized proportionally so it completely fills its bounds, and anything outside of the bounds will be cropped. As an example, if a 10x5 image was going to be drawn inside a 50x50 `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image` element, the image resource would be drawn as a 100x50 image, centered within its bounds (and with 25px cropped from both the left and right sides).

### CONTENT_SCALE_MODE_FILL_BOUNDS

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val CONTENT_SCALE_MODE_FILL_BOUNDS = 3: Int
```

Content will be resized to fill its bounds, without taking into account the aspect ratio. If a 10x5 image was going to be drawn inside a 50x50 `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image` element, the image would be drawn as a 50x50 image, stretched vertically.

### CONTENT_SCALE_MODE_FIT

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val CONTENT_SCALE_MODE_FIT = 1: Int
```

Content will be scaled to fit inside its bounds, proportionally. As an example, If a 10x5 image was going to be drawn inside a 50x50 `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Image` element, the actual image resource would be drawn as a 50x25 image, centered within the 50x50 bounds.

### CONTENT_SCALE_MODE_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val CONTENT_SCALE_MODE_UNDEFINED = 0: Int
```

Content scaling is undefined.

### FONT_VARIANT_BODY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_VARIANT_BODY = 2: Int
```

Font variant suited for body text.

### FONT_VARIANT_TITLE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_VARIANT_TITLE = 1: Int
```

Font variant suited for title text.

### FONT_VARIANT_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_VARIANT_UNDEFINED = 0: Int
```

Font variant is undefined.

### FONT_WEIGHT_BOLD

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_WEIGHT_BOLD = 700: Int
```

Bold font weight.

### FONT_WEIGHT_MEDIUM

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
@ProtoLayoutExperimental
const val FONT_WEIGHT_MEDIUM = 500: Int
```

Medium font weight.

### FONT_WEIGHT_NORMAL

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_WEIGHT_NORMAL = 400: Int
```

Normal font weight.

### FONT_WEIGHT_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val FONT_WEIGHT_UNDEFINED = 0: Int
```

Font weight is undefined.

### HORIZONTAL_ALIGN_CENTER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_CENTER = 2: Int
```

Horizontally align to center.

### HORIZONTAL_ALIGN_END

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_END = 5: Int
```

Horizontally align to the content end (right in LTR layouts, left in RTL layouts).

### HORIZONTAL_ALIGN_LEFT

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_LEFT = 1: Int
```

Horizontally align to the left.

### HORIZONTAL_ALIGN_RIGHT

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_RIGHT = 3: Int
```

Horizontally align to the right.

### HORIZONTAL_ALIGN_START

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_START = 4: Int
```

Horizontally align to the content start (left in LTR layouts, right in RTL layouts).

### HORIZONTAL_ALIGN_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val HORIZONTAL_ALIGN_UNDEFINED = 0: Int
```

Horizontal alignment is undefined.

### SPAN_VERTICAL_ALIGN_BOTTOM

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SPAN_VERTICAL_ALIGN_BOTTOM = 1: Int
```

Align to the bottom of the line (descent of the largest text in this line). If there is no text in the line containing this image, this will align to the bottom of the line, where the line height is defined as the height of the largest image in the line.

### SPAN_VERTICAL_ALIGN_TEXT_BASELINE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SPAN_VERTICAL_ALIGN_TEXT_BASELINE = 2: Int
```

Align to the baseline of the text. Note that if the line in the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Spannable` which contains this image does not contain any text, the effects of using this alignment are undefined.

### SPAN_VERTICAL_ALIGN_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SPAN_VERTICAL_ALIGN_UNDEFINED = 0: Int
```

Alignment is undefined.

### STROKE_CAP_BUTT

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val STROKE_CAP_BUTT = 1: Int
```

Begin and end contours with a flat edge and no extension.

### STROKE_CAP_ROUND

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val STROKE_CAP_ROUND = 2: Int
```

Begin and end contours with a semi-circle extension. The extension size is proportional to the thickness of the path.

### STROKE_CAP_SQUARE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val STROKE_CAP_SQUARE = 3: Int
```

Begin and end contours with a half square extension. The extension size is proportional to the thickness of the path.

### STROKE_CAP_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val STROKE_CAP_UNDEFINED = 0: Int
```

`StrokeCap` is undefined.

### TEXT_ALIGN_CENTER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_ALIGN_CENTER = 2: Int
```

Align to the center of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element.

### TEXT_ALIGN_END

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_ALIGN_END = 3: Int
```

Align to the "end" of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element (right in LTR layouts, left in RTL layouts).

### TEXT_ALIGN_START

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_ALIGN_START = 1: Int
```

Align to the "start" of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element (left in LTR layouts, right in RTL layouts).

### TEXT_ALIGN_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_ALIGN_UNDEFINED = 0: Int
```

Alignment is undefined.

### TEXT_OVERFLOW_ELLIPSIZE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

```
@RequiresSchemaVersion(major = 1, minor = 300)
const val TEXT_OVERFLOW_ELLIPSIZE = 4: Int
```

Truncate the text to fit in the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element's parent bounds, but add an ellipsis (i.e. ...) to the end of the text if it has been truncated.

Note that, when this is used, the parent of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element this corresponds to shouldn't have its width and height set to wrapped, as it can lead to unexpected results.

### TEXT_OVERFLOW_ELLIPSIZE_END

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_OVERFLOW_ELLIPSIZE_END = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders#TEXT_OVERFLOW_ELLIPSIZE()` instead.

Truncate the text at the last line defined by `setMaxLines` in `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` to fit in the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element's bounds, but add an ellipsis (i.e. ...) to the end of the text if it has been truncated. Note that this will not add an ellipsis if the number of lines that fits into the available space is less than the `setMaxLines` in `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text`.

### TEXT_OVERFLOW_MARQUEE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val TEXT_OVERFLOW_MARQUEE = 3: Int
```

Enable marquee animation for texts that don't fit inside the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element. This is only applicable for single line texts; if the text has multiple lines, the behavior is equivalent to TEXT_OVERFLOW_TRUNCATE.

### TEXT_OVERFLOW_TRUNCATE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_OVERFLOW_TRUNCATE = 1: Int
```

Truncate the text to fit inside of the `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Text` element's bounds. If text is truncated, it will be truncated on a word boundary.

### TEXT_OVERFLOW_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val TEXT_OVERFLOW_UNDEFINED = 0: Int
```

Overflow behavior is undefined.

### VERTICAL_ALIGN_BOTTOM

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val VERTICAL_ALIGN_BOTTOM = 3: Int
```

Vertically align to the bottom.

### VERTICAL_ALIGN_CENTER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val VERTICAL_ALIGN_CENTER = 2: Int
```

Vertically align to center.

### VERTICAL_ALIGN_TOP

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val VERTICAL_ALIGN_TOP = 1: Int
```

Vertically align to the top.

### VERTICAL_ALIGN_UNDEFINED

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val VERTICAL_ALIGN_UNDEFINED = 0: Int
```

Vertical alignment is undefined.