LayoutElementBuilders.Spacer

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.Spacer implements LayoutElementBuilders.LayoutElement


A simple spacer, typically used to provide padding between adjacent elements.

Summary

Nested types

Builder for Spacer.

Public methods

getHeight

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable DimensionBuilders.SpacerDimension getHeight()

Gets the height of this spacer. If not defined, defaults to 0. Intended for testing purposes only.

getModifiers

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Modifiers getModifiers()

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getWidth

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable DimensionBuilders.SpacerDimension getWidth()

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.