WithDensity

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

The classes that affect the height of the line with respect to density, should implement this interface.
Requires API level 5 (Android 2.0, Eclair)

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.
Requires API level 5 (Android 2.0, Eclair)

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