public final class

LayoutElementBuilders.Column

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.Column

Overview

A column of elements. Each child element will be laid out vertically, one after another (i.e. stacking down). This element will size itself to the smallest size required to hold all of its children (e.g. if it contains three elements sized 10x10, 20x20 and 30x30, the resulting column will be 30x60).

If specified, horizontal_alignment can be used to control the gravity inside the container, affecting the horizontal placement of children whose width are smaller than the resulting column width.

Summary

Methods
public static LayoutElementBuilders.ColumnfromProto(LayoutElementProto.Column proto)

public java.util.List<LayoutElementBuilders.LayoutElement>getContents()

Gets the list of child elements to place inside this LayoutElementBuilders.Column.

public DimensionBuilders.ContainerDimensiongetHeight()

Gets the height of this column.

public LayoutElementBuilders.HorizontalAlignmentPropgetHorizontalAlignment()

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

public ModifiersBuilders.ModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public DimensionBuilders.ContainerDimensiongetWidth()

Gets the width of this column.

public LayoutElementProto.LayoutElementtoLayoutElementProto()

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

Methods

public java.util.List<LayoutElementBuilders.LayoutElement> getContents()

Gets the list of child elements to place inside this LayoutElementBuilders.Column. Intended for testing purposes only.

public LayoutElementBuilders.HorizontalAlignmentProp getHorizontalAlignment()

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

Gets the width of this column. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension). Intended for testing purposes only.

Gets the height of this column. If not defined, this will size itself to fit all of its children (i.e. a WrappedDimension). Intended for testing purposes only.

public ModifiersBuilders.Modifiers getModifiers()

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

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

public LayoutElementProto.LayoutElement toLayoutElementProto()