Added in API level 1
LineHeightSpan
interface LineHeightSpan : ParagraphStyle, WrapTogetherSpan
android.text.style.LineHeightSpan |
The classes that affect the line height of paragraph should implement this interface.
Summary
Nested classes | |
---|---|
open |
Default implementation of the |
abstract |
The classes that affect the line height of paragraph with respect to density, should implement this interface. |
Public methods | |
---|---|
abstract Unit |
chooseHeight(text: CharSequence!, start: Int, end: Int, spanstartv: Int, lineHeight: Int, fm: Paint.FontMetricsInt!) Classes that implement this should define how the height is being calculated. |
Public methods
chooseHeight
Added in API level 1
abstract fun chooseHeight(
text: CharSequence!,
start: Int,
end: Int,
spanstartv: Int,
lineHeight: Int,
fm: Paint.FontMetricsInt!
): 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 |
fm |
Paint.FontMetricsInt!: font metrics of the paint, in integers |