public final class

DimensionBuilders.HorizontalLayoutConstraint.Builder

extends androidx.wear.protolayout.DimensionBuilders.DpPropLayoutConstraint.Builder

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.DpPropLayoutConstraint.Builder

↳androidx.wear.protolayout.DimensionBuilders.HorizontalLayoutConstraint.Builder

Overview

Builder for DimensionBuilders.HorizontalLayoutConstraint.

Summary

Fields
from androidx.wear.protolayout.DimensionBuilders.DpPropLayoutConstraint.BuildermFingerprint, mImpl
Constructors
publicBuilder(float value)

Creates a new builder for DimensionBuilders.HorizontalLayoutConstraint.

Methods
public DimensionBuilders.HorizontalLayoutConstraintbuild()

Builds an instance of DimensionBuilders.HorizontalLayoutConstraint.

public DimensionBuilders.HorizontalLayoutConstraint.BuildersetHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of the actual content within the space reserved by value.

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

Constructors

public Builder(float value)

Creates a new builder for DimensionBuilders.HorizontalLayoutConstraint.

Parameters:

value: Sets the value to use when laying out components which can have a dynamic value. Constrains the layout so that components are not changing size or location regardless of the dynamic value that is being provided.

Methods

public DimensionBuilders.HorizontalLayoutConstraint.Builder setHorizontalAlignment(int horizontalAlignment)

Sets the horizontal alignment of the actual content within the space reserved by value. If not specified, defaults to center alignment.

Builds an instance of DimensionBuilders.HorizontalLayoutConstraint.