public final class

LayoutElementProto.Column.Builder

extends <any>

implements LayoutElementProto.ColumnOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Column.Builder

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

Methods
public LayoutElementProto.Column.BuilderaddAllContents(java.lang.Iterable<LayoutElementProto.LayoutElement> values)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderaddContents(int index, LayoutElementProto.LayoutElement.Builder builderForValue)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderaddContents(int index, LayoutElementProto.LayoutElement value)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderaddContents(LayoutElementProto.LayoutElement.Builder builderForValue)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderaddContents(LayoutElementProto.LayoutElement value)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderclearContents()

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuilderclearHeight()

 The height of this column.

public LayoutElementProto.Column.BuilderclearHorizontalAlignment()

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

public LayoutElementProto.Column.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Column.BuilderclearWidth()

 The width of this column.

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 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 LayoutElementProto.Column.BuildermergeHeight(DimensionProto.ContainerDimension value)

 The height of this column.

public LayoutElementProto.Column.BuildermergeHorizontalAlignment(AlignmentProto.HorizontalAlignmentProp value)

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

public LayoutElementProto.Column.BuildermergeModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Column.BuildermergeWidth(DimensionProto.ContainerDimension value)

 The width of this column.

public LayoutElementProto.Column.BuilderremoveContents(int index)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuildersetContents(int index, LayoutElementProto.LayoutElement.Builder builderForValue)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuildersetContents(int index, LayoutElementProto.LayoutElement value)

 The list of child elements to place inside this Column.

public LayoutElementProto.Column.BuildersetHeight(DimensionProto.ContainerDimension.Builder builderForValue)

 The height of this column.

public LayoutElementProto.Column.BuildersetHeight(DimensionProto.ContainerDimension value)

 The height of this column.

public LayoutElementProto.Column.BuildersetHorizontalAlignment(AlignmentProto.HorizontalAlignmentProp.Builder builderForValue)

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

public LayoutElementProto.Column.BuildersetHorizontalAlignment(AlignmentProto.HorizontalAlignmentProp value)

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

public LayoutElementProto.Column.BuildersetModifiers(ModifiersProto.Modifiers.Builder builderForValue)

 Modifiers for this element.

public LayoutElementProto.Column.BuildersetModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Column.BuildersetWidth(DimensionProto.ContainerDimension.Builder builderForValue)

 The width of this column.

public LayoutElementProto.Column.BuildersetWidth(DimensionProto.ContainerDimension value)

 The width of this column.

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

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 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;

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

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

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

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

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

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

public LayoutElementProto.Column.Builder addAllContents(java.lang.Iterable<LayoutElementProto.LayoutElement> values)

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

public LayoutElementProto.Column.Builder clearContents()

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

public LayoutElementProto.Column.Builder removeContents(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;

 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;

 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;

 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 LayoutElementProto.Column.Builder clearHorizontalAlignment()

 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;

 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;

 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;

 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;

 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;

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

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

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

public LayoutElementProto.Column.Builder clearModifiers()

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