public class TextIndentSpan
extends java.lang.Object
implements android.text.style.LeadingMarginSpan
| Modifier and Type | Class and Description |
|---|---|
static class |
TextIndentSpan.Options |
| Constructor and Description |
|---|
TextIndentSpan(TextIndentSpan.Options options) |
TextIndentSpan(TextIndentSpan.Options options,
int index) |
TextIndentSpan(TextIndentSpan.Options options,
java.lang.String data) |
| Modifier and Type | Method and Description |
|---|---|
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 l) |
int |
getLeadingMargin(boolean first) |
public TextIndentSpan(TextIndentSpan.Options options)
public TextIndentSpan(TextIndentSpan.Options options, int index)
public TextIndentSpan(TextIndentSpan.Options options, java.lang.String data)
public int getLeadingMargin(boolean first)
getLeadingMargin in interface android.text.style.LeadingMarginSpanpublic 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 l)
drawLeadingMargin in interface android.text.style.LeadingMarginSpan