summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fischer <enf@google.com>2010-03-12 16:43:07 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-12 16:43:07 -0800
commitcf6773de30c4c174817315f1e75a8319fdc87a77 (patch)
tree644382293953041a21deb2c9795419d76b1c1468
parent9627c36a32b124e865e78467ab4b0aad71948840 (diff)
parentec8b1021906f77c47a772da5ca5641836361513d (diff)
downloadframeworks_base-cf6773de30c4c174817315f1e75a8319fdc87a77.zip
frameworks_base-cf6773de30c4c174817315f1e75a8319fdc87a77.tar.gz
frameworks_base-cf6773de30c4c174817315f1e75a8319fdc87a77.tar.bz2
Merge "Add documentation for LeadingMarginSpan2."
-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();
};