public final class

LayoutElementBuilders.SpanText

extends java.lang.Object

implements LayoutElementBuilders.Span

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.SpanText

Overview

A portion of text which can be added to a LayoutElementBuilders.Span. Two different LayoutElementBuilders.SpanText elements on the same line will be aligned to the same baseline, regardless of the size of each LayoutElementBuilders.SpanText.

Summary

Methods
public static LayoutElementBuilders.SpanTextfromProto(LayoutElementProto.SpanText proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

public LayoutElementBuilders.FontStylegetFontStyle()

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

public ModifiersBuilders.SpanModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public TypeBuilders.StringPropgetText()

Gets the text to render.

public LayoutElementProto.SpantoSpanProto()

public java.lang.StringtoString()

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

Methods

public TypeBuilders.StringProp getText()

Gets the text to render.

public LayoutElementBuilders.FontStyle getFontStyle()

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

public ModifiersBuilders.SpanModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public Fingerprint getFingerprint()

public static LayoutElementBuilders.SpanText fromProto(LayoutElementProto.SpanText proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementProto.Span toSpanProto()

public java.lang.String toString()