public class NumberSpan
extends java.lang.Object
implements android.text.style.LeadingMarginSpan, android.text.ParcelableSpan
BulletSpan and all lines of the entry have
the same leading margin.| Modifier and Type | Field and Description |
|---|---|
static int |
STANDARD_GAP_WIDTH |
| Constructor and Description |
|---|
NumberSpan(int number) |
NumberSpan(int gapWidth,
int number) |
NumberSpan(android.os.Parcel src) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
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) |
int |
getSpanTypeId() |
int |
getSpanTypeIdInternal() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
void |
writeToParcelInternal(android.os.Parcel dest,
int flags) |
public static final int STANDARD_GAP_WIDTH
public NumberSpan(int gapWidth,
int number)
public NumberSpan(int number)
public NumberSpan(android.os.Parcel src)
public int getSpanTypeId()
getSpanTypeId in interface android.text.ParcelableSpanpublic int getSpanTypeIdInternal()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic void writeToParcelInternal(android.os.Parcel dest,
int flags)
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