public final class

LayoutElementProto.Row

extends <any>

implements LayoutElementProto.RowOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.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.
 
Protobuf type androidx.wear.protolayout.proto.Row

Summary

Fields
public static final intCONTENTS_FIELD_NUMBER

public static final intHEIGHT_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intVERTICAL_ALIGNMENT_FIELD_NUMBER

public static final intWIDTH_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public LayoutElementProto.LayoutElementgetContents(int index)

 The list of child elements to place inside this Row.

public intgetContentsCount()

 The list of child elements to place inside this Row.

public java.util.List<LayoutElementProto.LayoutElement>getContentsList()

 The list of child elements to place inside this Row.

public LayoutElementProto.LayoutElementOrBuildergetContentsOrBuilder(int index)

 The list of child elements to place inside this Row.

public java.util.List<LayoutElementProto.LayoutElementOrBuilder>getContentsOrBuilderList()

 The list of child elements to place inside this Row.

public static LayoutElementProto.RowgetDefaultInstance()

public DimensionProto.ContainerDimensiongetHeight()

 The height of this row.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public AlignmentProto.VerticalAlignmentPropgetVerticalAlignment()

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

public DimensionProto.ContainerDimensiongetWidth()

 The width of this row.

public booleanhasHeight()

 The height of this row.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasVerticalAlignment()

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

public booleanhasWidth()

 The width of this row.

public static LayoutElementProto.Row.BuildernewBuilder()

public static LayoutElementProto.Row.BuildernewBuilder(LayoutElementProto.Row prototype)

public static LayoutElementProto.RowparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.RowparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.RowparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.RowparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.RowparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.RowparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.RowparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.RowparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.RowparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.RowparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int CONTENTS_FIELD_NUMBER

public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

Methods

public java.util.List<LayoutElementProto.LayoutElement> getContentsList()

 The list of child elements to place inside this Row.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public java.util.List<LayoutElementProto.LayoutElementOrBuilder> getContentsOrBuilderList()

 The list of child elements to place inside this Row.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public int getContentsCount()

 The list of child elements to place inside this Row.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.LayoutElement getContents(int index)

 The list of child elements to place inside this Row.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.LayoutElementOrBuilder getContentsOrBuilder(int index)

 The list of child elements to place inside this Row.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public boolean hasVerticalAlignment()

 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.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 2;

public AlignmentProto.VerticalAlignmentProp getVerticalAlignment()

 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.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 2;

public boolean hasWidth()

 The width of this row. If not defined, this will size itself to fit
 all of its children (i.e. a WrappedDimension).
 
.androidx.wear.protolayout.proto.ContainerDimension width = 3;

 The width of this row. If not defined, this will size itself to fit
 all of its children (i.e. a WrappedDimension).
 
.androidx.wear.protolayout.proto.ContainerDimension width = 3;

public boolean hasHeight()

 The height of this row. If not defined, this will size itself to fit
 all of its children (i.e. a WrappedDimension).
 
.androidx.wear.protolayout.proto.ContainerDimension height = 4;

 The height of this row. If not defined, this will size itself to fit
 all of its children (i.e. a WrappedDimension).
 
.androidx.wear.protolayout.proto.ContainerDimension height = 4;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public static LayoutElementProto.Row parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.Row parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.Row parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.Row parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.Row parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Row.Builder newBuilder()

public static LayoutElementProto.Row.Builder newBuilder(LayoutElementProto.Row prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.Row getDefaultInstance()

public static <any> parser()