public interface

LayoutElementProto.RowOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.RowOrBuilder

Subclasses:

LayoutElementProto.Row, LayoutElementProto.Row.Builder

Summary

Methods
public LayoutElementProto.LayoutElementgetContents(int index)

 The list of child elements to place inside this Row.

public intgetContentsCount()

 The list of child elements to place inside this Row.

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

 The list of child elements to place inside this Row.

public DimensionProto.ContainerDimensiongetHeight()

 The height of this row.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public AlignmentProto.VerticalAlignmentPropgetVerticalAlignment()

 The vertical alignment of elements inside this row, if they are narrower
 than the resulting height of the row.

public DimensionProto.ContainerDimensiongetWidth()

 The width of this row.

public booleanhasHeight()

 The height of this row.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasVerticalAlignment()

 The vertical alignment of elements inside this row, if they are narrower
 than the resulting height of the row.

public booleanhasWidth()

 The width of this row.

Methods

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

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

public LayoutElementProto.LayoutElement getContents(int index)

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

public int getContentsCount()

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

public boolean hasVerticalAlignment()

 The vertical alignment of elements inside this row, if they are narrower
 than the resulting height of the row. If not defined, defaults to
 VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 2;

Returns:

Whether the verticalAlignment field is set.

public AlignmentProto.VerticalAlignmentProp getVerticalAlignment()

 The vertical alignment of elements inside this row, if they are narrower
 than the resulting height of the row. If not defined, defaults to
 VERTICAL_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_alignment = 2;

Returns:

The verticalAlignment.

public boolean hasWidth()

 The width of this row. 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 row. 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 hasHeight()

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

Returns:

Whether the height field is set.

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

Returns:

The height.

public boolean hasModifiers()

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

Returns:

Whether the modifiers field is set.

public ModifiersProto.Modifiers getModifiers()

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

Returns:

The modifiers.