inSpans
inline fun SpannableStringBuilder.inSpans(vararg spans: Any, builderAction: SpannableStringBuilder.() -> Unit): SpannableStringBuilder(source)
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.
inline fun SpannableStringBuilder.inSpans(span: Any, builderAction: SpannableStringBuilder.() -> Unit): SpannableStringBuilder(source)
Wrap appended text in builderAction in span.
Note: the span 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.