margin

fun Any?.margin(@Px width: Int, @ColorInt color: Int = Color.TRANSPARENT, replaceRule: Any? = null)

MarginSpan 设置文本间距

Parameters

width

文本间距

color

间距填充颜色

replaceRule

组合替换规则 StringReplaceRule


fun Any?.margin(@Px width: Int, colorString: String, replaceRule: Any? = null)

MarginSpan 设置文本间距

Parameters

width

文本间距

colorString

间距填充颜色 #RRGGBB #AARRGGBB

replaceRule

组合替换规则 StringReplaceRule