public final class

LayoutElementProto.Box

extends <any>

implements LayoutElementProto.BoxOrBuilder

 java.lang.Object

↳<any>

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

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

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 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 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 LayoutElementProto.LayoutElementOrBuildergetContentsOrBuilder(int index)

 The child element(s) to wrap.

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

 The child element(s) to wrap.

public static LayoutElementProto.BoxgetDefaultInstance()

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 static LayoutElementProto.Box.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.BoxparseFrom(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 HEIGHT_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER

public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER

public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

Methods

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

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

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

 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;

public LayoutElementProto.LayoutElementOrBuilder getContentsOrBuilder(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;

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;

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;

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;

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;

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.Box.Builder newBuilder()

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

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

public static LayoutElementProto.Box getDefaultInstance()

public static <any> parser()