public final class

LayoutElementBuilders.Box.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.builders.LayoutElementBuilders.Box.Builder

Overview

Builder for LayoutElementBuilders.Box.

Summary

Methods
public LayoutElementBuilders.Box.BuilderaddContent(LayoutElementBuilders.LayoutElement.Builder contentBuilder)

Adds one item to the child element(s) to wrap.

public LayoutElementBuilders.Box.BuilderaddContent(LayoutElementBuilders.LayoutElement content)

Adds one item to the child element(s) to wrap.

public LayoutElementBuilders.Boxbuild()

public LayoutElementBuilders.Box.BuildersetHeight(DimensionBuilders.ContainerDimension.Builder heightBuilder)

Sets the height of this LayoutElementBuilders.Box.

public LayoutElementBuilders.Box.BuildersetHeight(DimensionBuilders.ContainerDimension height)

Sets the height of this LayoutElementBuilders.Box.

public LayoutElementBuilders.Box.BuildersetHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of the element inside this LayoutElementBuilders.Box.

public LayoutElementBuilders.Box.BuildersetModifiers(ModifiersBuilders.Modifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.Box.BuildersetModifiers(ModifiersBuilders.Modifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.Box.BuildersetVerticalAlignment(int verticalAlignment)

Sets the vertical alignment of the element inside this LayoutElementBuilders.Box.

public LayoutElementBuilders.Box.BuildersetWidth(DimensionBuilders.ContainerDimension.Builder widthBuilder)

Sets the width of this LayoutElementBuilders.Box.

public LayoutElementBuilders.Box.BuildersetWidth(DimensionBuilders.ContainerDimension width)

Sets the width of this LayoutElementBuilders.Box.

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

Methods

Adds one item to the child element(s) to wrap.

Adds one item to the child element(s) to wrap.

Sets the height of this LayoutElementBuilders.Box. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).

Sets the height of this LayoutElementBuilders.Box. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).

Sets the width of this LayoutElementBuilders.Box. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).

Sets the width of this LayoutElementBuilders.Box. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension).

public LayoutElementBuilders.Box.Builder setHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of the element inside this LayoutElementBuilders.Box. If not defined, defaults to HALIGN_CENTER.

public LayoutElementBuilders.Box.Builder setVerticalAlignment(int verticalAlignment)

Sets the vertical alignment of the element inside this LayoutElementBuilders.Box. If not defined, defaults to VALIGN_CENTER.

Sets ModifiersBuilders.Modifiers for this element.

Sets ModifiersBuilders.Modifiers for this element.