LayoutElementBuilders.SpanText

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.SpanText implements LayoutElementBuilders.Span


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

Summary

Nested types

This class is deprecated. Deprecated in Java

Public methods

@Nullable LayoutElementBuilders.FontStyle

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.SpanModifiers

This method is deprecated. Deprecated in Java

@Nullable TypeBuilders.StringProp

This method is deprecated. Deprecated in Java

Public methods

getFontStyle

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable 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.

getModifiers

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.SpanModifiers getModifiers()

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getText

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable TypeBuilders.StringProp getText()

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