# LayoutElementBuilders

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

*** ** * ** ***


```
public final class LayoutElementBuilders
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders` instead.

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

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Arc implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Arc.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAnchorTypeProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAnchorTypeProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement` **This interface is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This interface is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLine implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLine.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcSpacer implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcSpacer.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcText implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcText.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Box implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Box.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ColorFilter` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ColorFilter.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Column implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Column.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ContentScaleModeProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ContentScaleModeProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontStyle` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontStyle.Builder` **This class is deprecated.** Deprecated in Java |
| `public class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontStyles` **This class is deprecated.** Deprecated in Java |
| `@https://developer.android.com/reference/androidx/wear/tiles/TilesExperimental public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontVariantProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontVariantProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontWeightProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.FontWeightProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.HorizontalAlignmentProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.HorizontalAlignmentProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Image implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Image.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Layout` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Layout.Builder` **This class is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This interface is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This interface is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Spacer implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Spacer.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span` **This interface is deprecated.** Deprecated in Java |
| `public interface https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span.Builder` **This interface is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanImage implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanImage.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanText implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanText.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Span.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanVerticalAlignmentProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.SpanVerticalAlignmentProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Spannable implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Spannable.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Text implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Text.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.TextAlignmentProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.TextAlignmentProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.TextOverflowProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.TextOverflowProp.Builder` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.VerticalAlignmentProp` **This class is deprecated.** Deprecated in Java |
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.VerticalAlignmentProp.Builder` **This class is deprecated.** Deprecated in Java |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#ARC_ANCHOR_CENTER() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#ARC_ANCHOR_END() = 3` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#ARC_ANCHOR_START() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#ARC_ANCHOR_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#CONTENT_SCALE_MODE_CROP() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#CONTENT_SCALE_MODE_FILL_BOUNDS() = 3` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#CONTENT_SCALE_MODE_FIT() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#CONTENT_SCALE_MODE_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_VARIANT_BODY() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_VARIANT_TITLE() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_VARIANT_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_WEIGHT_BOLD() = 700` **This field is deprecated.** Deprecated in Java |
| `static final int` | `@https://developer.android.com/reference/androidx/wear/tiles/TilesExperimental https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_WEIGHT_MEDIUM() = 500` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_WEIGHT_NORMAL() = 400` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#FONT_WEIGHT_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_CENTER() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_END() = 5` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_LEFT() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_RIGHT() = 3` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_START() = 4` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#HORIZONTAL_ALIGN_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_BOTTOM() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_TEXT_BASELINE() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#SPAN_VERTICAL_ALIGN_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_ALIGN_CENTER() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_ALIGN_END() = 3` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_ALIGN_START() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_ALIGN_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_OVERFLOW_ELLIPSIZE_END() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_OVERFLOW_TRUNCATE() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#TEXT_OVERFLOW_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#VERTICAL_ALIGN_BOTTOM() = 3` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#VERTICAL_ALIGN_CENTER() = 2` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#VERTICAL_ALIGN_TOP() = 1` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders#VERTICAL_ALIGN_UNDEFINED() = 0` **This field is deprecated.** Deprecated in Java |

## Constants

### ARC_ANCHOR_CENTER

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

```
public static final int ARC_ANCHOR_CENTER = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int ARC_ANCHOR_END = 3
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int ARC_ANCHOR_START = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int ARC_ANCHOR_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Anchor position is undefined.

### CONTENT_SCALE_MODE_CROP

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

```
public static final int CONTENT_SCALE_MODE_CROP = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int CONTENT_SCALE_MODE_FILL_BOUNDS = 3
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int CONTENT_SCALE_MODE_FIT = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int CONTENT_SCALE_MODE_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Content scaling is undefined.

### FONT_VARIANT_BODY

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

```
public static final int FONT_VARIANT_BODY = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Font variant suited for body text.

### FONT_VARIANT_TITLE

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

```
public static final int FONT_VARIANT_TITLE = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Font variant suited for title text.

### FONT_VARIANT_UNDEFINED

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

```
public static final int FONT_VARIANT_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Font variant is undefined.

### FONT_WEIGHT_BOLD

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

```
public static final int FONT_WEIGHT_BOLD = 700
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Bold font weight.

### FONT_WEIGHT_MEDIUM

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

```
@TilesExperimental
public static final int FONT_WEIGHT_MEDIUM = 500
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Medium font weight.

### FONT_WEIGHT_NORMAL

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

```
public static final int FONT_WEIGHT_NORMAL = 400
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Normal font weight.

### FONT_WEIGHT_UNDEFINED

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

```
public static final int FONT_WEIGHT_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Font weight is undefined.

### HORIZONTAL_ALIGN_CENTER

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

```
public static final int HORIZONTAL_ALIGN_CENTER = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Horizontally align to center.

### HORIZONTAL_ALIGN_END

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

```
public static final int HORIZONTAL_ALIGN_END = 5
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int HORIZONTAL_ALIGN_LEFT = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Horizontally align to the left.

### HORIZONTAL_ALIGN_RIGHT

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

```
public static final int HORIZONTAL_ALIGN_RIGHT = 3
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Horizontally align to the right.

### HORIZONTAL_ALIGN_START

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

```
public static final int HORIZONTAL_ALIGN_START = 4
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int HORIZONTAL_ALIGN_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Horizontal alignment is undefined.

### SPAN_VERTICAL_ALIGN_BOTTOM

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

```
public static final int SPAN_VERTICAL_ALIGN_BOTTOM = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int SPAN_VERTICAL_ALIGN_TEXT_BASELINE = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Align to the baseline of the text. Note that if the line in the `https://developer.android.com/reference/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int SPAN_VERTICAL_ALIGN_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Alignment is undefined.

### TEXT_ALIGN_CENTER

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

```
public static final int TEXT_ALIGN_CENTER = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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

### TEXT_ALIGN_END

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

```
public static final int TEXT_ALIGN_END = 3
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Align to the "end" of the `https://developer.android.com/reference/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int TEXT_ALIGN_START = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Align to the "start" of the `https://developer.android.com/reference/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int TEXT_ALIGN_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Alignment is undefined.

### TEXT_OVERFLOW_ELLIPSIZE_END

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

```
public static final int TEXT_OVERFLOW_ELLIPSIZE_END = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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

### TEXT_OVERFLOW_TRUNCATE

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

```
public static final int TEXT_OVERFLOW_TRUNCATE = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Truncate the text to fit inside of the `https://developer.android.com/reference/androidx/wear/tiles/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-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int TEXT_OVERFLOW_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Overflow behavior is undefined.

### VERTICAL_ALIGN_BOTTOM

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

```
public static final int VERTICAL_ALIGN_BOTTOM = 3
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Vertically align to the bottom.

### VERTICAL_ALIGN_CENTER

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

```
public static final int VERTICAL_ALIGN_CENTER = 2
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Vertically align to center.

### VERTICAL_ALIGN_TOP

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

```
public static final int VERTICAL_ALIGN_TOP = 1
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Vertically align to the top.

### VERTICAL_ALIGN_UNDEFINED

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

```
public static final int VERTICAL_ALIGN_UNDEFINED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

Vertical alignment is undefined.