public final class

TypeBuilders.StringLayoutConstraint.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.TypeBuilders.StringLayoutConstraint.Builder

Overview

Builder for TypeBuilders.StringLayoutConstraint.

Summary

Constructors
publicBuilder(java.lang.String patternForLayout)

Creates a new builder for TypeBuilders.StringLayoutConstraint.

Methods
public TypeBuilders.StringLayoutConstraintbuild()

Builds an instance of TypeBuilders.StringLayoutConstraint.

public TypeBuilders.StringLayoutConstraint.BuildersetAlignment(int alignment)

Sets alignment of the actual text within the space reserved by patternForLayout.

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

Constructors

public Builder(java.lang.String patternForLayout)

Creates a new builder for TypeBuilders.StringLayoutConstraint.

Parameters:

patternForLayout: Sets the text string to use as the pattern for the largest text that can be laid out. Used to ensure that the layout is of a known size during the layout pass.

Methods

public TypeBuilders.StringLayoutConstraint.Builder setAlignment(int alignment)

Sets alignment of the actual text within the space reserved by patternForLayout. If not specified, defaults to center alignment.

Builds an instance of TypeBuilders.StringLayoutConstraint.