public final class

DimensionBuilders.ExpandedDimensionProp.Builder

extends java.lang.Object

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

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.ExpandedDimensionProp.Builder

Overview

Builder for DimensionBuilders.ExpandedDimensionProp.

Summary

Constructors
publicBuilder()

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods
public DimensionBuilders.ExpandedDimensionPropbuild()

Builds an instance from accumulated values.

public DimensionBuilders.ExpandedDimensionProp.BuildersetLayoutWeight(TypeBuilders.FloatProp layoutWeight)

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

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

Constructors

public Builder()

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods

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

Note that this field only supports static values.

Builds an instance from accumulated values.