LayoutElementBuilders.Spacer

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.Spacer : LayoutElementBuilders.LayoutElement


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

Summary

Public functions

getHeight

Added in 1.0.0
Deprecated in 1.2.0
fun getHeight(): DimensionBuilders.SpacerDimension?

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
fun getModifiers(): ModifiersBuilders.Modifiers?

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
fun getWidth(): DimensionBuilders.SpacerDimension?

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.