text Appearance
fun Any?.textAppearance(style: Int = Typeface.NORMAL, @Px size: Int = -1, @ColorInt color: Int? = null, family: String? = null, linkColor: ColorStateList? = null, replaceRule: Any? = null)
Content copied to clipboard
TextAppearanceSpan 设置字体效果spanTypeface
Parameters
style
文本样式 Typeface.NORMALTypeface.ITALIC
size
文本大小
color
文本颜色
family
字体集
link Color
链接颜色
replace Rule
组合替换规则 StringReplaceRule