CurvedTextView

public class CurvedTextView implements ArcLayout.Widget


CurvedTextView is a component allowing developers to easily write curved text following the curvature of the largest circle that can be inscribed in the view. ArcLayout could be used to concatenate multiple curved texts, also layout together with other widgets such as icons.

Summary

Public constructors

CurvedTextView(
    @NonNull Context context,
    @Nullable AttributeSet attrs,
    int defStyle
)
CurvedTextView(
    @NonNull Context context,
    @Nullable AttributeSet attrs,
    int defStyle,
    int defStyleRes
)

Public methods

@Override void
@Override void
draw(@NonNull Canvas canvas)
@FloatRange(from = 0.0, to = 360.0, toInclusive = true) float

Returns the anchor angle used for positioning the text, in degrees.

@ArcLayout.AnchorType int

Returns the anchor type for positioning the curved text

@Nullable TextUtils.TruncateAt

Returns where, if anywhere, words that are longer than the view is wide should be ellipsized.

@Nullable String

Returns the font feature settings.

@Nullable String

Returns TrueType or OpenType font variation settings.

float

Gets the text letter-space value, which determines the spacing between characters.

@FloatRange(from = 0.0, to = 360.0, toInclusive = true) float

Returns the maximum sweep angle in degrees for rendering the text

@FloatRange(from = 0.0, to = 360.0, toInclusive = true) float

Returns the sweep angle in degrees for rendering the text

@Override @FloatRange(from = 0.0, to = 360.0, toInclusive = true) float

Returns the sweep angle that this widget is drawn with.

@Nullable String