LayoutElementBuilders.ArcText.Builder
public final class LayoutElementBuilders.ArcText.Builder
Builder for ArcText
.
Summary
Public methods
build
public @NonNull LayoutElementBuilders.ArcText build()
Builds an instance from accumulated values.
setArcDirection
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull LayoutElementBuilders.ArcText.Builder setArcDirection(int arcDirection)
Sets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.
setArcDirection
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull LayoutElementBuilders.ArcText.Builder setArcDirection(
@NonNull LayoutElementBuilders.ArcDirectionProp arcDirection
)
Sets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.
setFontStyle
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull LayoutElementBuilders.ArcText.Builder setFontStyle(@NonNull LayoutElementBuilders.FontStyle fontStyle)
Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.
setModifiers
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull LayoutElementBuilders.ArcText.Builder setModifiers(@NonNull ModifiersBuilders.ArcModifiers modifiers)
Sets androidx.wear.protolayout.ModifiersBuilders.Modifiers
for this element.
setText
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull String text)
Sets the text to render.
setText
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull TypeBuilders.StringProp text)
Sets the text to render.
Note that this field only supports static values.