CenterImageSpan

Image Span used to center align the image with surrounding text inside a textview

Constructors

Link copied to clipboard
constructor(drawable: Drawable)

Properties

Link copied to clipboard
Link copied to clipboard
open val drawable: Drawable?
Link copied to clipboard
protected val mVerticalAlignment: Int
Link copied to clipboard
open val source: String?
Link copied to clipboard
Link copied to clipboard

Functions

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

see detail message in android.text.TextLine

Link copied to clipboard
open override fun getSize(paint: Paint, text: CharSequence?, start: Int, end: Int, fm: Paint.FontMetricsInt?): Int

update the text line height

Link copied to clipboard
open fun updateDrawState(ds: TextPaint?)
Link copied to clipboard