LayoutElementBuilders.Spacer.Builder

public static final class LayoutElementBuilders.Spacer.Builder
extends Object implements LayoutElementBuilders.LayoutElement.Builder

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.Spacer.Builder


Builder for LayoutElementBuilders.Spacer.

Summary

Public methods

LayoutElementBuilders.Spacer build()

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.Spacer.Builder setHeight(DimensionBuilders.SpacerDimension.Builder heightBuilder)

Sets the height of this spacer.

LayoutElementBuilders.Spacer.Builder setHeight(DimensionBuilders.SpacerDimension height)

Sets the height of this spacer.

LayoutElementBuilders.Spacer.Builder setModifiers(ModifiersBuilders.Modifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.Spacer.Builder setModifiers(ModifiersBuilders.Modifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.Spacer.Builder setWidth(DimensionBuilders.SpacerDimension.Builder widthBuilder)

Sets the width of this LayoutElementBuilders.Spacer.

LayoutElementBuilders.Spacer.Builder setWidth(DimensionBuilders.SpacerDimension width)

Sets the width of this LayoutElementBuilders.Spacer.

Inherited methods

Public methods

build

public LayoutElementBuilders.Spacer build ()

Builds an instance with values accumulated in this Builder.

Returns
LayoutElementBuilders.Spacer

setHeight

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

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

Parameters
heightBuilder DimensionBuilders.SpacerDimension.Builder

Returns
LayoutElementBuilders.Spacer.Builder

setHeight

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

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

Parameters
height DimensionBuilders.SpacerDimension

Returns
LayoutElementBuilders.Spacer.Builder

setModifiers

public LayoutElementBuilders.Spacer.Builder setModifiers (ModifiersBuilders.Modifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiers ModifiersBuilders.Modifiers

Returns
LayoutElementBuilders.Spacer.Builder

setModifiers

public LayoutElementBuilders.Spacer.Builder setModifiers (ModifiersBuilders.Modifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiersBuilder ModifiersBuilders.Modifiers.Builder

Returns
LayoutElementBuilders.Spacer.Builder

setWidth

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

Sets the width of this LayoutElementBuilders.Spacer. When this is added as the direct child of an LayoutElementBuilders.Arc, this must be specified as an angular dimension, otherwise a linear dimension must be used. If not defined, defaults to 0.

Parameters
widthBuilder DimensionBuilders.SpacerDimension.Builder

Returns
LayoutElementBuilders.Spacer.Builder

setWidth

public LayoutElementBuilders.Spacer.Builder setWidth (DimensionBuilders.SpacerDimension width)

Sets the width of this LayoutElementBuilders.Spacer. When this is added as the direct child of an LayoutElementBuilders.Arc, this must be specified as an angular dimension, otherwise a linear dimension must be used. If not defined, defaults to 0.

Parameters
width DimensionBuilders.SpacerDimension

Returns
LayoutElementBuilders.Spacer.Builder