glide
fun Any?.glide(view: TextView, url: Any, useTextViewSize: TextView? = null, size: DrawableSize? = null, @Px marginLeft: Int? = null, @Px marginRight: Int? = null, align: GlideImageSpan.Align = GlideImageSpan.Align.CENTER, loopCount: Int? = null, requestOption: RequestOptions? = null, replaceRule: Any? = null)
Content copied to clipboard
GlideImageSpan 图片
Parameters
view
当前Span所在的TextView, 用于异步加载完图片后通知TextView刷新
url
图片地址参见 Glide.with(view).load(url)
use Text View Size
图片使用指定的TextView文本大小,与参数size冲突,优先使用useTextViewSize
size
图片大小 DrawableSize
margin Left
图片左边距
margin Right
图片右边距
align
图片对齐方式 CenterImageSpan.Align.CENTERCenterImageSpan.Align.BASELINE
replace Rule
组合替换规则 StringReplaceRule