public final class

LayoutElementBuilders.Box.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

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

Overview

Builder for LayoutElementBuilders.Box.

Summary

Constructors
publicBuilder()

Methods
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 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.BuildersetHorizontalAlignment(LayoutElementBuilders.HorizontalAlignmentProp horizontalAlignment)

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

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.BuildersetVerticalAlignment(LayoutElementBuilders.VerticalAlignmentProp verticalAlignment)

Sets the vertical alignment of the element inside 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

Constructors

public Builder()

Methods

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 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(LayoutElementBuilders.HorizontalAlignmentProp horizontalAlignment)

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

public LayoutElementBuilders.Box.Builder setHorizontalAlignment(int horizontalAlignment)

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

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

public LayoutElementBuilders.Box.Builder setVerticalAlignment(int verticalAlignment)

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

Sets ModifiersBuilders.Modifiers for this element.