public final class

LayoutElementBuilders.Spacer

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.Spacer

Overview

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

Summary

Methods
public static LayoutElementBuilders.SpacerfromProto(LayoutElementProto.Spacer proto)

public DimensionBuilders.SpacerDimensiongetHeight()

Gets the height of this spacer.

public ModifiersBuilders.ModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public DimensionBuilders.SpacerDimensiongetWidth()

Gets the width of this LayoutElementBuilders.Spacer.

public LayoutElementProto.LayoutElementtoLayoutElementProto()

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

Methods

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.

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

public ModifiersBuilders.Modifiers getModifiers()

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

public static LayoutElementBuilders.Spacer fromProto(LayoutElementProto.Spacer proto)

public LayoutElementProto.LayoutElement toLayoutElementProto()