# LayoutElementBuilders.Row.Builder

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.Row.Builder) 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.Row.Builder implements LayoutElementBuilders.LayoutElement.Builder
```

<br />

*** ** * ** ***

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

Builder for `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row`.

## Summary

| ### Public constructors |
|---|
| `[Builder](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#Builder())()` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[addContent](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#addContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement content)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row` | `[build](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#build())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[setHeight](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setHeight(androidx.wear.tiles.DimensionBuilders.ContainerDimension))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.ContainerDimension height)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[setModifiers](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setModifiers(androidx.wear.tiles.ModifiersBuilders.Modifiers))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Modifiers modifiers)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[setVerticalAlignment](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setVerticalAlignment(int))(int verticalAlignment)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[setVerticalAlignment](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setVerticalAlignment(androidx.wear.tiles.LayoutElementBuilders.VerticalAlignmentProp))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.VerticalAlignmentProp verticalAlignment )` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder` | `[setWidth](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setWidth(androidx.wear.tiles.DimensionBuilders.ContainerDimension))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.ContainerDimension width)` **This method is deprecated.** Deprecated in Java |

## Public constructors

### Builder

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 [Builder](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#Builder())()
```

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

## Public methods

### addContent

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 @NonNull LayoutElementBuilders.Row.Builder [addContent](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#addContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(@NonNull LayoutElementBuilders.LayoutElement content)
```

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

Adds one item to the list of child elements to place inside this `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row`.

### build

```
public @NonNull LayoutElementBuilders.Row [build](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#build())()
```

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

Builds an instance with values accumulated in this Builder.

### setHeight

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 @NonNull LayoutElementBuilders.Row.Builder [setHeight](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setHeight(androidx.wear.tiles.DimensionBuilders.ContainerDimension))(@NonNull DimensionBuilders.ContainerDimension height)
```

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

Sets the height of this row. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).

### setModifiers

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 @NonNull LayoutElementBuilders.Row.Builder [setModifiers](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setModifiers(androidx.wear.tiles.ModifiersBuilders.Modifiers))(@NonNull ModifiersBuilders.Modifiers modifiers)
```

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

Sets `https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Modifiers` for this element.

### setVerticalAlignment

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 @NonNull LayoutElementBuilders.Row.Builder [setVerticalAlignment](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setVerticalAlignment(int))(int verticalAlignment)
```

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

Sets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row. If not defined, defaults to VERTICAL_ALIGN_CENTER.

### setVerticalAlignment

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 @NonNull LayoutElementBuilders.Row.Builder [setVerticalAlignment](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setVerticalAlignment(androidx.wear.tiles.LayoutElementBuilders.VerticalAlignmentProp))(
    @NonNull LayoutElementBuilders.VerticalAlignmentProp verticalAlignment
)
```

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

Sets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row. If not defined, defaults to VERTICAL_ALIGN_CENTER.

### setWidth

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 @NonNull LayoutElementBuilders.Row.Builder [setWidth](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Row.Builder#setWidth(androidx.wear.tiles.DimensionBuilders.ContainerDimension))(@NonNull DimensionBuilders.ContainerDimension width)
```

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

Sets the width of this row. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).