LayoutElementBuilders.Spacer.Builder

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


Builder for Spacer.

Summary

Public methods

build

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

Builds an instance with values accumulated in this Builder.

setHeight

@NonNull
public LayoutElementBuilders.Spacer.Builder setHeight(@NonNull DimensionBuilders.SpacerDimension height)

Sets the height of this spacer. If not defined, defaults to 0.

setHeight

@NonNull
public LayoutElementBuilders.Spacer.Builder setHeight(
    @NonNull DimensionBuilders.SpacerDimension.Builder heightBuilder
)

Sets the height of this spacer. If not defined, defaults to 0.

setWidth

@NonNull
public LayoutElementBuilders.Spacer.Builder setWidth(@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.

setWidth

@NonNull
public LayoutElementBuilders.Spacer.Builder setWidth(
    @NonNull DimensionBuilders.SpacerDimension.Builder widthBuilder
)

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.