public final class

LayoutElementProto.Box.Builder

extends <any>

implements LayoutElementProto.BoxOrBuilder

 java.lang.Object

↳<any>

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

Overview

 A container which stacks all of its children on top of one another. This also
 allows to add a background color, or to have a border around them with some
 padding.
 
Protobuf type androidx.wear.protolayout.proto.Box

Summary

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

 The child element(s) to wrap.

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

 The child element(s) to wrap.

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

 The child element(s) to wrap.

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

 The child element(s) to wrap.

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

 The child element(s) to wrap.

public LayoutElementProto.Box.BuilderclearContents()

 The child element(s) to wrap.

public LayoutElementProto.Box.BuilderclearHeight()

 The height of this Box.

public LayoutElementProto.Box.BuilderclearHorizontalAlignment()

 The horizontal alignment of the element inside this Box.

public LayoutElementProto.Box.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Box.BuilderclearVerticalAlignment()

 The vertical alignment of the element inside this Box.

public LayoutElementProto.Box.BuilderclearWidth()

 The width of this Box.

public LayoutElementProto.LayoutElementgetContents(int index)

 The child element(s) to wrap.

public intgetContentsCount()

 The child element(s) to wrap.

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

 The child element(s) to wrap.

public DimensionProto.ContainerDimensiongetHeight()

 The height of this Box.

public AlignmentProto.HorizontalAlignmentPropgetHorizontalAlignment()

 The horizontal alignment of the element inside this Box.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public AlignmentProto.VerticalAlignmentPropgetVerticalAlignment()

 The vertical alignment of the element inside this Box.

public DimensionProto.ContainerDimensiongetWidth()

 The width of this Box.

public booleanhasHeight()

 The height of this Box.

public booleanhasHorizontalAlignment()

 The horizontal alignment of the element inside this Box.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasVerticalAlignment()

 The vertical alignment of the element inside this Box.

public booleanhasWidth()

 The width of this Box.

public LayoutElementProto.Box.BuildermergeHeight(DimensionProto.ContainerDimension value)

 The height of this Box.

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

 The horizontal alignment of the element inside this Box.

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

 Modifiers for this element.

public LayoutElementProto.Box.BuildermergeVerticalAlignment(AlignmentProto.VerticalAlignmentProp value)

 The vertical alignment of the element inside this Box.

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

 The width of this Box.

public LayoutElementProto.Box.BuilderremoveContents(int index)

 The child element(s) to wrap.

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

 The child element(s) to wrap.

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

 The child element(s) to wrap.

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

 The height of this Box.

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

 The height of this Box.

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

 The horizontal alignment of the element inside this Box.

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

 The horizontal alignment of the element inside this Box.

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

 Modifiers for this element.

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

 Modifiers for this element.

public LayoutElementProto.Box.BuildersetVerticalAlignment(AlignmentProto.VerticalAlignmentProp.Builder builderForValue)

 The vertical alignment of the element inside this Box.

public LayoutElementProto.Box.BuildersetVerticalAlignment(AlignmentProto.VerticalAlignmentProp value)

 The vertical alignment of the element inside this Box.

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

 The width of this Box.

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

 The width of this Box.

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

Methods

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

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public int getContentsCount()

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.LayoutElement getContents(int index)

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.Box.Builder setContents(int index, LayoutElementProto.LayoutElement.Builder builderForValue)

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.Box.Builder addContents(int index, LayoutElementProto.LayoutElement.Builder builderForValue)

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

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

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.Box.Builder clearContents()

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public LayoutElementProto.Box.Builder removeContents(int index)

 The child element(s) to wrap.
 
repeated .androidx.wear.protolayout.proto.LayoutElement contents = 1;

public boolean hasHeight()

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

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

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

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

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

public LayoutElementProto.Box.Builder clearHeight()

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

public boolean hasWidth()

 The width of this Box. 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 Box. 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 Box. 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 Box. 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 Box. 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 LayoutElementProto.Box.Builder clearWidth()

 The width of this Box. 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 hasHorizontalAlignment()

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

public AlignmentProto.HorizontalAlignmentProp getHorizontalAlignment()

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

public LayoutElementProto.Box.Builder clearHorizontalAlignment()

 The horizontal alignment of the element inside this Box. If not defined,
 defaults to HORIZONTAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.HorizontalAlignmentProp horizontal_alignment = 4;

public boolean hasVerticalAlignment()

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

public AlignmentProto.VerticalAlignmentProp getVerticalAlignment()

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

public LayoutElementProto.Box.Builder clearVerticalAlignment()

 The vertical alignment of the element inside this Box. If not defined,
 defaults to VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 5;

public boolean hasModifiers()

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

public ModifiersProto.Modifiers getModifiers()

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

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

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

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

public LayoutElementProto.Box.Builder clearModifiers()

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