LayoutElementBuilders.Row.Builder

public final class LayoutElementBuilders.Row.Builder implements LayoutElementBuilders.LayoutElement.Builder


Builder for Row.

Summary

Public methods

@NonNull LayoutElementBuilders.Row.Builder

Adds one item to the list of child elements to place inside this Row.

@NonNull LayoutElementBuilders.Row.Builder

Adds one item to the list of child elements to place inside this Row.

@Override @NonNull LayoutElementBuilders.Row

Builds an instance with values accumulated in this Builder.

@NonNull LayoutElementBuilders.Row.Builder

Sets the height of this row.

@NonNull LayoutElementBuilders.Row.Builder

Sets the height of this row.

@NonNull LayoutElementBuilders.Row.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.Row.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.Row.Builder

Sets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row.

@NonNull LayoutElementBuilders.Row.Builder

Sets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row.

@NonNull LayoutElementBuilders.Row.Builder

Sets the width of this row.

@NonNull LayoutElementBuilders.Row.Builder

Sets the width of this row.

Public methods

addContent

@NonNull
public LayoutElementBuilders.Row.Builder addContent(@NonNull LayoutElementBuilders.LayoutElement content)

Adds one item to the list of child elements to place inside this Row.

addContent

@NonNull
public LayoutElementBuilders.Row.Builder addContent(
    @NonNull LayoutElementBuilders.LayoutElement.Builder contentBuilder
)

Adds one item to the list of child elements to place inside this Row.

build

@Override
@NonNull
public @Override LayoutElementBuilders.Row build()

Builds an instance with values accumulated in this Builder.

setHeight

@NonNull
public LayoutElementBuilders.Row.Builder setHeight(@NonNull DimensionBuilders.ContainerDimension height)

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

setHeight

@NonNull
public LayoutElementBuilders.Row.Builder setHeight(
    @NonNull DimensionBuilders.ContainerDimension.Builder heightBuilder
)

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

setVerticalAlignment

@NonNull
public LayoutElementBuilders.Row.Builder setVerticalAlignment(
    @NonNull LayoutElementBuilders.VerticalAlignmentProp verticalAlignment
)

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

@NonNull
public LayoutElementBuilders.Row.Builder setVerticalAlignment(
    @LayoutElementBuilders.VerticalAlignment @NonNull int verticalAlignment
)

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

@NonNull
public LayoutElementBuilders.Row.Builder setWidth(@NonNull DimensionBuilders.ContainerDimension width)

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

setWidth

@NonNull
public LayoutElementBuilders.Row.Builder setWidth(
    @NonNull DimensionBuilders.ContainerDimension.Builder widthBuilder
)

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