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

color

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

Wrap appended text in builderAction in a ForegroundColorSpan.

See Also

SpannableStringBuilder.inSpans