public interface

DimensionProto.ExpandedDimensionPropOrBuilder

 androidx.wear.protolayout.proto.DimensionProto.ExpandedDimensionPropOrBuilder

Subclasses:

DimensionProto.ExpandedDimensionProp, DimensionProto.ExpandedDimensionProp.Builder

Summary

Methods
public TypesProto.FloatPropgetLayoutWeight()

 The layout weight (a dimensionless scalar value) for this element.

public booleanhasLayoutWeight()

 The layout weight (a dimensionless scalar value) for this element.

Methods

public boolean hasLayoutWeight()

 The layout weight (a dimensionless scalar value) for this element. This
 will only affect the width of children of a Row or the height of children
 of a Column. By default, all children have equal weight. Where applicable,
 the width or height of the element is proportional to the sum of the
 weights of its siblings.

 <p>Note that negative values are not supported and it can lead to
 unexpected behaviour.
 
.androidx.wear.protolayout.proto.FloatProp layout_weight = 1;

Returns:

Whether the layoutWeight field is set.

public TypesProto.FloatProp getLayoutWeight()

 The layout weight (a dimensionless scalar value) for this element. This
 will only affect the width of children of a Row or the height of children
 of a Column. By default, all children have equal weight. Where applicable,
 the width or height of the element is proportional to the sum of the
 weights of its siblings.

 <p>Note that negative values are not supported and it can lead to
 unexpected behaviour.
 
.androidx.wear.protolayout.proto.FloatProp layout_weight = 1;

Returns:

The layoutWeight.