LayoutElementBuilders.Column.Builder

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


Builder for Column.

Summary

Public methods

@NonNull LayoutElementBuilders.Column.Builder

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

@NonNull LayoutElementBuilders.Column.Builder

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

@Override @NonNull LayoutElementBuilders.Column

Builds an instance with values accumulated in this Builder.

@NonNull LayoutElementBuilders.Column.Builder

Sets the height of this column.

@NonNull LayoutElementBuilders.Column.Builder

Sets the height of this column.

@NonNull LayoutElementBuilders.Column.Builder

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column.

@NonNull LayoutElementBuilders.Column.Builder

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column.

@NonNull LayoutElementBuilders.Column.Builder

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

@NonNull LayoutElementBuilders.Column.Builder

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

@NonNull LayoutElementBuilders.Column.Builder

Sets the width of this column.

@NonNull LayoutElementBuilders.Column.Builder

Sets the width of this column.

Public methods

addContent

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

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

addContent

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

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

build

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

Builds an instance with values accumulated in this Builder.

setHeight

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

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

setHeight

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

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

setHorizontalAlignment

@NonNull
public LayoutElementBuilders.Column.Builder setHorizontalAlignment(
    @NonNull LayoutElementBuilders.HorizontalAlignmentProp horizontalAlignment
)

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.

setHorizontalAlignment

@NonNull
public LayoutElementBuilders.Column.Builder setHorizontalAlignment(
    @LayoutElementBuilders.HorizontalAlignment @NonNull int horizontalAlignment
)

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.

setWidth

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

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

setWidth

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

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