public final class

LayoutElementBuilders.SpanText.Builder

extends java.lang.Object

implements LayoutElementBuilders.Span.Builder

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.SpanText.Builder

Overview

Builder for LayoutElementBuilders.SpanText.

Summary

Constructors
publicBuilder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods
public LayoutElementBuilders.SpanTextbuild()

Builds an instance from accumulated values.

public LayoutElementBuilders.SpanText.BuildersetFontStyle(LayoutElementBuilders.FontStyle fontStyle)

Sets the style of font to use (size, bold etc).

public LayoutElementBuilders.SpanText.BuildersetModifiers(ModifiersBuilders.SpanModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.SpanText.BuildersetText(java.lang.String text)

Sets the text to render.

public LayoutElementBuilders.SpanText.BuildersetText(TypeBuilders.StringProp text)

Sets the text to render.

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

Constructors

public Builder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods

Sets the text to render.

Note that this field only supports static values.

public LayoutElementBuilders.SpanText.Builder setText(java.lang.String text)

Sets the text to render.

Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.

DynamicColor is not supported for SpanText.

Sets ModifiersBuilders.Modifiers for this element.

Builds an instance from accumulated values.