android.text.style
Class BulletSpan
java.lang.Object
android.text.style.BulletSpan
- All Implemented Interfaces:
- Parcelable, ParcelableSpan, LeadingMarginSpan, ParagraphStyle
public class BulletSpan
- extends java.lang.Object
- implements LeadingMarginSpan, ParcelableSpan
Method Summary |
int |
describeContents()
|
void |
drawLeadingMargin(Canvas c,
Paint p,
int x,
int dir,
int top,
int baseline,
int bottom,
java.lang.CharSequence text,
int start,
int end,
boolean first,
Layout l)
|
int |
getLeadingMargin(boolean first)
|
int |
getSpanTypeId()
|
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STANDARD_GAP_WIDTH
public static final int STANDARD_GAP_WIDTH
- See Also:
- Constant Field Values
BulletSpan
public BulletSpan()
BulletSpan
public BulletSpan(int gapWidth)
BulletSpan
public BulletSpan(int gapWidth,
int color)
BulletSpan
public BulletSpan(Parcel src)
getSpanTypeId
public int getSpanTypeId()
- Specified by:
getSpanTypeId
in interface ParcelableSpan
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel dest,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
getLeadingMargin
public int getLeadingMargin(boolean first)
- Specified by:
getLeadingMargin
in interface LeadingMarginSpan
drawLeadingMargin
public void drawLeadingMargin(Canvas c,
Paint p,
int x,
int dir,
int top,
int baseline,
int bottom,
java.lang.CharSequence text,
int start,
int end,
boolean first,
Layout l)
- Specified by:
drawLeadingMargin
in interface LeadingMarginSpan
Copyright © 2008-2010. All Rights Reserved.