to top
Android APIs
public static interface

LeadingMarginSpan.LeadingMarginSpan2

implements LeadingMarginSpan WrapTogetherSpan
android.text.style.LeadingMarginSpan.LeadingMarginSpan2

Class Overview

An extended version of LeadingMarginSpan, which allows the implementor to specify the number of lines of text to which this object is attached that the "first line of paragraph" margin width will be applied to.

Summary

Public Methods
abstract int getLeadingMarginLineCount()
Returns the number of lines of text to which this object is attached that the "first line" margin will apply to.
[Expand]
Inherited Methods
From interface android.text.style.LeadingMarginSpan

Public Methods

public abstract int getLeadingMarginLineCount ()

Added in API level 8

Returns the number of lines of text to which this object is attached that the "first line" margin will apply to. Note that if this returns N, the first N lines of the region, not the first N lines of each paragraph, will be given the special margin width.