LayoutElementBuilders.Box.Builder
public final class LayoutElementBuilders.Box.Builder implements LayoutElementBuilders.LayoutElement.Builder
Builder for Box
.
Summary
Public constructors |
---|
|
Public methods
public @NonNull LayoutElementBuilders.Box.BuilderaddContent(@NonNull LayoutElementBuilders.LayoutElement content)
Adds one item to the child element(s) to wrap.
build
public @NonNull LayoutElementBuilders.Boxbuild()
Builds an instance with values accumulated in this Builder.
public @NonNull LayoutElementBuilders.Box.BuildersetHeight(@NonNull DimensionBuilders.ContainerDimension height)
Sets the height of this Box
. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).
public @NonNull LayoutElementBuilders.Box.BuildersetHorizontalAlignment(int horizontalAlignment)
Sets the horizontal alignment of the element inside this Box
. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.
public @NonNull LayoutElementBuilders.Box.BuildersetHorizontalAlignment(
@NonNull LayoutElementBuilders.HorizontalAlignmentProp horizontalAlignment
)
Sets the horizontal alignment of the element inside this Box
. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.
public @NonNull LayoutElementBuilders.Box.BuildersetModifiers(@NonNull ModifiersBuilders.Modifiers modifiers)
Sets androidx.wear.tiles.ModifiersBuilders.Modifiers
for this element.
public @NonNull LayoutElementBuilders.Box.BuildersetVerticalAlignment(int verticalAlignment)
Sets the vertical alignment of the element inside this Box
. If not defined, defaults to VERTICAL_ALIGN_CENTER.
public @NonNull LayoutElementBuilders.Box.BuildersetVerticalAlignment(
@NonNull LayoutElementBuilders.VerticalAlignmentProp verticalAlignment
)
Sets the vertical alignment of the element inside this Box
. If not defined, defaults to VERTICAL_ALIGN_CENTER.
public @NonNull LayoutElementBuilders.Box.BuildersetWidth(@NonNull DimensionBuilders.ContainerDimension width)
Sets the width of this Box
. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).