public final class

LayoutElementBuilders.Column.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.Column.Builder

Overview

Builder for LayoutElementBuilders.Column.

Summary

Constructors
publicBuilder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods
public LayoutElementBuilders.Column.BuilderaddContent(LayoutElementBuilders.LayoutElement content)

Adds one item to the list of child elements to place inside this LayoutElementBuilders.Column.

public LayoutElementBuilders.Columnbuild()

Builds an instance from accumulated values.

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

Sets the height of this column.

public LayoutElementBuilders.Column.BuildersetHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column.

public LayoutElementBuilders.Column.BuildersetHorizontalAlignment(LayoutElementBuilders.HorizontalAlignmentProp horizontalAlignment)

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column.

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

Sets ModifiersBuilders.Modifiers for this element.

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

Sets the width of this column.

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

Constructors

public Builder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods

Adds one item to the list of child elements to place inside this LayoutElementBuilders.Column.

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.

public LayoutElementBuilders.Column.Builder setHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of elements inside this column, if they are narrower than the resulting width of the column. If not defined, defaults to HORIZONTAL_ALIGN_CENTER.

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

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

Sets ModifiersBuilders.Modifiers for this element.

Builds an instance from accumulated values.