public final class

LayoutElementBuilders.Spacer.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.Spacer.Builder

Overview

Builder for LayoutElementBuilders.Spacer.

Summary

Constructors
publicBuilder()

Methods
public LayoutElementBuilders.Spacerbuild()

public LayoutElementBuilders.Spacer.BuildersetHeight(DimensionBuilders.SpacerDimension height)

Sets the height of this spacer.

public LayoutElementBuilders.Spacer.BuildersetModifiers(ModifiersBuilders.Modifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.Spacer.BuildersetWidth(DimensionBuilders.SpacerDimension width)

Sets the width of this LayoutElementBuilders.Spacer.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

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.

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

Sets ModifiersBuilders.Modifiers for this element.