Added in API level 5
WithDensity
interface WithDensity : LineHeightSpan
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.