MarginImageSpan

open class MarginImageSpan : AlignImageSpan

支持设置图片左右间距的 ImageSpan

Constructors

MarginImageSpan
Link copied to clipboard
open fun MarginImageSpan(d: Drawable, verticalAlignment: Int, marginLeft: Int, marginRight: Int)
MarginImageSpan
Link copied to clipboard
open fun MarginImageSpan(d: Drawable, verticalAlignment: Int, marginLeft: Int, marginRight: Int, offsetY: Int)

Functions

draw
Link copied to clipboard
open fun draw(canvas: Canvas, text: CharSequence, start: Int, end: Int, x: Float, top: Int, y: Int, bottom: Int, paint: Paint)
getSize
Link copied to clipboard
open fun getSize(paint: Paint, text: CharSequence, start: Int, end: Int, fm: Paint.FontMetricsInt): Int