LayoutElementBuilders.Spacer
public final class LayoutElementBuilders.Spacer implements LayoutElementBuilders.LayoutElement
A simple spacer, typically used to provide padding between adjacent elements.
Summary
Nested types |
---|
public final class LayoutElementBuilders.Spacer.Builder implements LayoutElementBuilders.LayoutElement.Builder Builder for |
Public methods |
|
---|---|
@Nullable DimensionBuilders.SpacerDimension |
Gets the height of this spacer. |
@Nullable ModifiersBuilders.Modifiers |
Gets |
@Nullable DimensionBuilders.SpacerDimension |
Gets the width of this |
Public methods
public @Nullable DimensionBuilders.SpacerDimensiongetHeight()
Gets the height of this spacer. If not defined, defaults to 0. Intended for testing purposes only.
public @Nullable ModifiersBuilders.ModifiersgetModifiers()
Gets androidx.wear.tiles.ModifiersBuilders.Modifiers
for this element. Intended for testing purposes only.
public @Nullable DimensionBuilders.SpacerDimensiongetWidth()
Gets 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. Intended for testing purposes only.