Added in API level 5

WithDensity


interface WithDensity : LineHeightSpan
android.text.style.LineHeightSpan.WithDensity

The classes that affect the line height of paragraph with respect to density, should implement this interface.

Summary

Public methods
abstract Unit
chooseHeight(text: CharSequence!, start: Int, end: Int, spanstartv: Int, lineHeight: Int, fm: Paint.FontMetricsInt!, paint: TextPaint!)

Classes that implement this should define how the height is being calculated.

Inherited functions

Public methods

chooseHeight

Added in API level 5
abstract fun chooseHeight(
    text: CharSequence!,
    start: Int,
    end: Int,
    spanstartv: Int,
    lineHeight: Int,
    fm: Paint.FontMetricsInt!,
    paint: TextPaint!
): Unit

Classes that implement this should define how the height is being calculated.

Parameters
text CharSequence!: the text
start Int: the start of the line
end Int: the end of the line
spanstartv Int: the start of the span
lineHeight Int: the line height
paint TextPaint!: the paint