public interface

LayoutElementProto.BoxOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.BoxOrBuilder

Subclasses:

LayoutElementProto.Box, LayoutElementProto.Box.Builder

Summary

Methods
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.

Methods

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

 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 int getContentsCount()

 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;

Returns:

Whether the height field is set.

 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;

Returns:

The height.

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;

Returns:

Whether the width field is set.

 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;

Returns:

The width.

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;

Returns:

Whether the horizontalAlignment field is set.

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;

Returns:

The horizontalAlignment.

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;

Returns:

Whether the verticalAlignment field is set.

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;

Returns:

The verticalAlignment.

public boolean hasModifiers()

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

Returns:

Whether the modifiers field is set.

public ModifiersProto.Modifiers getModifiers()

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

Returns:

The modifiers.