LayoutElementBuilders.Spacer

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

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


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

Summary

Nested classes

class LayoutElementBuilders.Spacer.Builder

Builder for LayoutElementBuilders.Spacer

Public methods

static LayoutElementBuilders.Spacer.Builder builder()

Returns a new LayoutElementBuilders.Spacer.Builder.

DimensionBuilders.SpacerDimension getHeight()

Gets the height of this spacer.

ModifiersBuilders.Modifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

DimensionBuilders.SpacerDimension getWidth()

Gets the width of this LayoutElementBuilders.Spacer.

Inherited methods

Public methods

getHeight

public DimensionBuilders.SpacerDimension getHeight ()

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

Returns
DimensionBuilders.SpacerDimension

getModifiers

public ModifiersBuilders.Modifiers getModifiers ()

Gets ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

Returns
ModifiersBuilders.Modifiers

getWidth

public DimensionBuilders.SpacerDimension getWidth ()

Gets 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. Intended for testing purposes only.

Returns
DimensionBuilders.SpacerDimension