LayoutElementBuilders.Spacer.Builder
public final class LayoutElementBuilders.Spacer.Builder implements LayoutElementBuilders.LayoutElement.Builder
Builder for Spacer.
Summary
Public constructors |
|---|
|
Public methods |
|
|---|---|
@NonNull LayoutElementBuilders.Spacer |
Builds an instance with values accumulated in this Builder. |
@NonNull LayoutElementBuilders.Spacer.Builder |
Sets the height of this spacer. |
@NonNull LayoutElementBuilders.Spacer.Builder |
Sets |
@NonNull LayoutElementBuilders.Spacer.Builder |
Sets the width of this |
Public methods
build
public @NonNull LayoutElementBuilders.Spacerbuild()
Builds an instance with values accumulated in this Builder.
public @NonNull LayoutElementBuilders.Spacer.BuildersetHeight(@NonNull DimensionBuilders.SpacerDimension height)
Sets the height of this spacer. If not defined, defaults to 0.
public @NonNull LayoutElementBuilders.Spacer.BuildersetModifiers(@NonNull ModifiersBuilders.Modifiers modifiers)
Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.
public @NonNull LayoutElementBuilders.Spacer.BuildersetWidth(@NonNull DimensionBuilders.SpacerDimension width)
Sets the width of this Spacer. When this is added as the direct child of an Arc, this must be specified as an angular dimension, otherwise a linear dimension must be used. If not defined, defaults to 0.