LayoutElementBuilders.ArcText
@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.ArcText implements LayoutElementBuilders.ArcLayoutElement
A text element that can be used in an Arc.
Summary
Nested types |
|---|
public final class LayoutElementBuilders.ArcText.BuilderBuilder for |
Public methods |
|
|---|---|
@Nullable LayoutElementBuilders.ArcDirectionProp |
Gets defines the direction in which text is drawn. |
@Nullable LayoutElementBuilders.FontStyle |
Gets the style of font to use (size, bold etc). |
@Nullable ModifiersBuilders.ArcModifiers |
Gets |
@Nullable TypeBuilders.StringProp |
getText()Gets the text to render. |
@NonNull String |
toString() |
Public methods
getArcDirection
Added in 1.2.0
public @Nullable LayoutElementBuilders.ArcDirectionProp getArcDirection()
Gets defines the direction in which text is drawn.
getFontStyle
Added in 1.0.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.
getModifiers
Added in 1.0.0
public @Nullable ModifiersBuilders.ArcModifiers getModifiers()
Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.