SpannableBuilder

class SpannableBuilder

Class that allows you to create a CharSequence with markup objects inferred from styles. Currently supported attributes are defined in {@link R.styleable.Paris_Spannable}.

Note : setting a @font resource value to android:fontFamily is yet supported. For now, only string values will be taken into account (ex: "monospace", "serif", etc.)

Functions

append
Link copied to clipboard
fun append(text: String, style: Style): SpannableBuilder
fun append(text: String, @StyleRes() styleRes: Int = 0): SpannableBuilder
applyTo
Link copied to clipboard
fun applyTo(textView: TextView)
build
Link copied to clipboard
fun build(context: Context): CharSequence