public final class

LayoutElementBuilders.Row

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.Row

Overview

A row of elements. Each child will be laid out horizontally, one after another (i.e. stacking to the right). 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 row will be 60x30).

If specified, vertical_alignment can be used to control the gravity inside the container, affecting the vertical placement of children whose width are smaller than the resulting row height.

Summary

Methods
public static LayoutElementBuilders.RowfromProto(LayoutElementProto.Row proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

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

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

public FingerprintgetFingerprint()

public DimensionBuilders.ContainerDimensiongetHeight()

Gets the height of this row.

public ModifiersBuilders.ModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.VerticalAlignmentPropgetVerticalAlignment()

Gets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row.

public DimensionBuilders.ContainerDimensiongetWidth()

Gets the width of this row.

public LayoutElementProto.LayoutElementtoLayoutElementProto()

public java.lang.StringtoString()

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

Methods

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

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

public LayoutElementBuilders.VerticalAlignmentProp getVerticalAlignment()

Gets the vertical alignment of elements inside this row, if they are narrower than the resulting height of the row. If not defined, defaults to VERTICAL_ALIGN_CENTER.

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

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

public ModifiersBuilders.Modifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public Fingerprint getFingerprint()

public static LayoutElementBuilders.Row fromProto(LayoutElementProto.Row proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementProto.LayoutElement toLayoutElementProto()

public java.lang.String toString()