Stylizacja tekstu Kotlin
val spannable = SpannableString("This is a string to be styled programatically to bold")
spannable.setSpan(
StyleSpan(Typeface.BOLD),
45,
67,
Spannable.SPAN_EXCLUSIVE_INCLUSIVE
)
val spannable = SpannableString("This is a string to be styled programatically to bold")
spannable.setSpan(
StyleSpan(Typeface.BOLD),
45,
67,
Spannable.SPAN_EXCLUSIVE_INCLUSIVE
)