public final class

LayoutElementBuilders.SpanText

extends java.lang.Object

implements LayoutElementBuilders.Span

 java.lang.Object

↳androidx.wear.tiles.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)

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()

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

Methods

public TypeBuilders.StringProp getText()

Gets the text to render. Intended for testing purposes only.

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. Intended for testing purposes only.

public ModifiersBuilders.SpanModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

public static LayoutElementBuilders.SpanText fromProto(LayoutElementProto.SpanText proto)

public LayoutElementProto.Span toSpanProto()