BlockSpaceSpan

open class BlockSpaceSpan : ReplacementSpan

提供一个整行的空白的Span,可用来用于制作段间距

Author

cginechen

Constructors

BlockSpaceSpan
Link copied to clipboard
open fun BlockSpaceSpan(height: Int)

Functions

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