public final class

LayoutElementProto.Column

extends <any>

implements LayoutElementProto.ColumnOrBuilder

 java.lang.Object

↳<any>

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

Summary

Fields
public static final intCONTENTS_FIELD_NUMBER

public static final intHEIGHT_FIELD_NUMBER

public static final intHORIZONTAL_ALIGNMENT_FIELD_NUMBER

public static final intMODIFIERS_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 Column.

public intgetContentsCount()

 The list of child elements to place inside this Column.

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

 The list of child elements to place inside this Column.

public LayoutElementProto.LayoutElementOrBuildergetContentsOrBuilder(int index)

 The list of child elements to place inside this Column.

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

 The list of child elements to place inside this Column.

public static LayoutElementProto.ColumngetDefaultInstance()

public DimensionProto.ContainerDimensiongetHeight()

 The height of this column.

public AlignmentProto.HorizontalAlignmentPropgetHorizontalAlignment()

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

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public DimensionProto.ContainerDimensiongetWidth()

 The width of this column.

public booleanhasHeight()

 The height of this column.

public booleanhasHorizontalAlignment()

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

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasWidth()

 The width of this column.

public static LayoutElementProto.Column.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.ColumnparseFrom(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 HORIZONTAL_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 Column.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

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

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

public int getContentsCount()

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

public LayoutElementProto.LayoutElement getContents(int index)

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

public LayoutElementProto.LayoutElementOrBuilder getContentsOrBuilder(int index)

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

public boolean hasHorizontalAlignment()

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

public AlignmentProto.HorizontalAlignmentProp getHorizontalAlignment()

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

public boolean hasWidth()

 The width of this column. 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 column. 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 column. 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 column. 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.Column parseFrom(java.nio.ByteBuffer data)

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.Column.Builder newBuilder()

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

public static LayoutElementProto.Column getDefaultInstance()

public static <any> parser()