AppendableStyle

class AppendableStyle(@ColorInt val foreColor: Int? = null, @ColorInt val backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), val fontStyle: StyleMode = StyleMode.NORMAL, val fontFamily: TypefaceSpan? = null, val fontSize: Int? = null, val fontAlign: Layout.Alignment? = null, val proportion: Float = 1.0f, val xProportion: Float = 1.0f)

The append style.

Since

0.5.1

Constructors

Link copied to clipboard
constructor(linesIndent: LeadingMarginSpan.Standard, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(quoteSpan: QuoteSpan, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(bulletSpan: BulletSpan, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(strikeMode: StrikeMode = StrikeMode.NONE, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(scriptMode: ScriptMode = ScriptMode.NONE, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(clickSpan: ClickableSpan, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(url: String, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(blurRadius: Float, blur: BlurMaskFilter.Blur, @ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)
constructor(@ColorInt foreColor: Int? = null, @ColorInt backColor: Int = ContextCompat .getColor(ContextHelper.getAppContext(), R.color.transparent), fontStyle: StyleMode = StyleMode.NORMAL, fontFamily: TypefaceSpan? = null, fontSize: Int? = null, fontAlign: Layout.Alignment? = null, proportion: Float = 1.0f, xProportion: Float = 1.0f)

Properties

Link copied to clipboard

Color that defines the background color.

Link copied to clipboard

The Blur to use.

Link copied to clipboard

The radius to extend the blur from the original mask. Must be 0.

Link copied to clipboard

Defines the text bullet point.

Link copied to clipboard

Defines the text click event.

Link copied to clipboard

Refer to TypefaceSpan.

Link copied to clipboard
val fontSize: Int? = null

Set the text size to fontSize in pixels.

Link copied to clipboard

An enum constant describing the style for this text. Refer to StyleMode.

Link copied to clipboard
val foreColor: Int? = null

Color that defines the text color.

Link copied to clipboard

Defines the text indentation.

Link copied to clipboard
val proportion: Float = 1.0f

The proportion with which the text is scaled.

Link copied to clipboard

Defines the text quote.

Link copied to clipboard

Defines the text as superscript or subscript.

Link copied to clipboard

Add a strikethrough or underline for the text.

Link copied to clipboard
var url: String?

Defines the text as url.

Link copied to clipboard
val xProportion: Float = 1.0f

Values 1.0 will stretch the text wider. Values < 1.0 will stretch the text narrower.