diff options
author | Eric Fischer <enf@google.com> | 2010-03-12 16:43:07 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-03-12 16:43:07 -0800 |
commit | cf6773de30c4c174817315f1e75a8319fdc87a77 (patch) | |
tree | 644382293953041a21deb2c9795419d76b1c1468 | |
parent | 9627c36a32b124e865e78467ab4b0aad71948840 (diff) | |
parent | ec8b1021906f77c47a772da5ca5641836361513d (diff) | |
download | frameworks_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.java | 13 |
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(); }; |