📜  kotlin 文本样式 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:19.860000             🧑  作者: Mango

代码示例1
val spannable = SpannableString("This is a string to be styled programatically to bold")
spannable.setSpan(
    StyleSpan(Typeface.BOLD),
            45,
            67,
            Spannable.SPAN_EXCLUSIVE_INCLUSIVE
    )