summaryrefslogtreecommitdiffstats
path: root/core/java/android/text
diff options
context:
space:
mode:
authorEric Fischer <enf@google.com>2010-03-12 15:35:41 -0800
committerEric Fischer <enf@google.com>2010-03-12 15:35:41 -0800
commitec8b1021906f77c47a772da5ca5641836361513d (patch)
treecf550cf793b534093e989894864d819d554c7253 /core/java/android/text
parent842f9df2c7944d5d7144b241763c65b497ba9312 (diff)
downloadframeworks_base-ec8b1021906f77c47a772da5ca5641836361513d.zip
frameworks_base-ec8b1021906f77c47a772da5ca5641836361513d.tar.gz
frameworks_base-ec8b1021906f77c47a772da5ca5641836361513d.tar.bz2
Add documentation for LeadingMarginSpan2.
Bug 2420334 Change-Id: Ica42cc34a938a5ec529da16804d1f0e6fddcc249
Diffstat (limited to 'core/java/android/text')
-rw-r--r--core/java/android/text/style/LeadingMarginSpan.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/text/style/LeadingMarginSpan.java b/core/java/android/text/style/LeadingMarginSpan.java
index f320701..2f429ff 100644
--- a/core/java/android/text/style/LeadingMarginSpan.java
+++ b/core/java/android/text/style/LeadingMarginSpan.java
@@ -68,7 +68,20 @@ extends ParagraphStyle
boolean first, Layout layout);
+ /**
+ * An extended version of {@link 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.
+ */
public interface LeadingMarginSpan2 extends LeadingMarginSpan, WrapTogetherSpan {
+ /**
+ * 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.
+ */
public int getLeadingMarginLineCount();
};