LayoutElementBuilders.ArcText

public static final class LayoutElementBuilders.ArcText
extends Object implements LayoutElementBuilders.ArcLayoutElement

java.lang.Object
   ↳ androidx.wear.tiles.LayoutElementBuilders.ArcText


A text element that can be used in an LayoutElementBuilders.Arc.

Summary

Nested classes

class LayoutElementBuilders.ArcText.Builder

Builder for LayoutElementBuilders.ArcText

Public methods

static LayoutElementBuilders.ArcText.Builder builder()

Returns a new LayoutElementBuilders.ArcText.Builder.

LayoutElementBuilders.FontStyle getFontStyle()

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

ModifiersBuilders.ArcModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

TypeBuilders.StringProp getText()

Gets the text to render.

Inherited methods

Public methods

getFontStyle

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.

Returns
LayoutElementBuilders.FontStyle

getModifiers

public ModifiersBuilders.ArcModifiers getModifiers ()

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

Returns
ModifiersBuilders.ArcModifiers

getText

public TypeBuilders.StringProp getText ()

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

Returns
TypeBuilders.StringProp