public final class

DimensionBuilders.ExpandedDimensionProp

extends java.lang.Object

implements DimensionBuilders.ContainerDimension, DimensionBuilders.ImageDimension, DimensionBuilders.SpacerDimension

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.ExpandedDimensionProp

Overview

A type for a dimension that fills all the space it can (i.e. MATCH_PARENT in Android parlance).

Summary

Methods
public static DimensionBuilders.ExpandedDimensionPropfromProto(DimensionProto.ExpandedDimensionProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

public TypeBuilders.FloatPropgetLayoutWeight()

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

public DimensionProto.ContainerDimensiontoContainerDimensionProto()

public DimensionProto.ImageDimensiontoImageDimensionProto()

public DimensionProto.SpacerDimensiontoSpacerDimensionProto()

public java.lang.StringtoString()

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

Methods

public TypeBuilders.FloatProp getLayoutWeight()

Gets the layout weight (a dimensionless scalar value) for this element. This will only affect the width of children of a LayoutElementBuilders.Row or the height of children of a LayoutElementBuilders.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.

Note that negative values are not supported and it can lead to unexpected behaviour.

public Fingerprint getFingerprint()

Creates a new wrapper instance from the proto.

public DimensionProto.ContainerDimension toContainerDimensionProto()

public DimensionProto.ImageDimension toImageDimensionProto()

public DimensionProto.SpacerDimension toSpacerDimensionProto()

public java.lang.String toString()