inline fun SpannableStringBuilder.inSpans(vararg spans: Any, builderAction: SpannableStringBuilder.() -> Unit): SpannableStringBuilder
Wrap appended text in builderAction
in spans
.
Note: the spans will only have the correct position if the builderAction
only appends or
replaces text. Inserting, deleting, or clearing the text will cause the span to be placed at
an incorrect position.