LeadingMarginSpanpublic interface LeadingMarginSpan implements ParagraphStyleA paragraph style affecting the leading margin. There can be multiple leading
margin spans on a single paragraph; they will be rendered in order, each
adding its margin to the ones before it. The leading margin is on the right
for lines in a right-to-left paragraph.
LeadingMarginSpans should be attached from the first character to the last
character of a single paragraph. |
Methods Summary |
---|
public void | drawLeadingMargin(android.graphics.Canvas c, android.graphics.Paint p, int x, int dir, int top, int baseline, int bottom, java.lang.CharSequence text, int start, int end, boolean first, android.text.Layout layout)Renders the leading margin. This is called before the margin has been
adjusted by the value returned by {@link #getLeadingMargin(boolean)}.
| public int | getLeadingMargin(boolean first)Returns the amount by which to adjust the leading margin. Positive values
move away from the leading edge of the paragraph, negative values move
towards it.
|
|