# Print output for @column tags ?> LineHeightSpan - Android SDK | Android Developers

Most visited


Recently visited


LineHeightSpan

public interface LineHeightSpan
implements ParagraphStyle, WrapTogetherSpan

android.text.style.LineHeightSpan


The classes that affect the line height of paragraph should implement this interface.

Summary


Nested classes

class LineHeightSpan.Standard

Default implementation of the LineHeightSpan, which changes the line height of the attached paragraph. 

interface LineHeightSpan.WithDensity

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

Public methods

abstract void chooseHeight(CharSequence text, int start, int end, int spanstartv, int lineHeight, Paint.FontMetricsInt fm)

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

Public methods


chooseHeight

public abstract void chooseHeight (CharSequence text, 
                int start, 
                int end, 
                int spanstartv, 
                int lineHeight, 
                Paint.FontMetricsInt fm)

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

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.