setBoldTextWithColor

fun setBoldTextWithColor(str: CharSequence, @AttrRes linkColor: Int = R.attr.mimiPrimaryTintColorNormal)

Sets the given CharSequence as the current text with a Typeface.BOLD and ForegroundColorSpan. This will look for "* *" markings in the CharSequence and span what's in between.

Parameters

str

The CharSequence you want to be displayed and styled.

linkColor

The color attribute to be used. Default value R.attr.mimiPrimaryTintColorNormal.