core-ktx / androidx.text / android.text.SpannableStringBuilder / backgroundColor

backgroundColor

inline fun SpannableStringBuilder.backgroundColor(color: Int, builderAction: SpannableStringBuilder.() -> Unit): SpannableStringBuilder

Wrap appended text in builderAction in a BackgroundColorSpan.

See Also

SpannableStringBuilder.inSpans