android.text.style
Class IconMarginSpan
java.lang.Object
android.text.style.IconMarginSpan
- All Implemented Interfaces:
- LeadingMarginSpan, LineHeightSpan, ParagraphStyle, WrapTogetherSpan
public class IconMarginSpan
- extends Object
- implements LeadingMarginSpan, LineHeightSpan
Method Summary |
void |
chooseHeight(CharSequence text,
int start,
int end,
int istartv,
int v,
Paint.FontMetricsInt fm)
|
void |
drawLeadingMargin(Canvas c,
Paint p,
int x,
int dir,
int top,
int baseline,
int bottom,
CharSequence text,
int start,
int end,
boolean first,
Layout layout)
|
int |
getLeadingMargin(boolean first)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconMarginSpan
public IconMarginSpan(Bitmap b)
IconMarginSpan
public IconMarginSpan(Bitmap b,
int pad)
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,
CharSequence text,
int start,
int end,
boolean first,
Layout layout)
- Specified by:
drawLeadingMargin
in interface LeadingMarginSpan
chooseHeight
public void chooseHeight(CharSequence text,
int start,
int end,
int istartv,
int v,
Paint.FontMetricsInt fm)
- Specified by:
chooseHeight
in interface LineHeightSpan
Copyright © 2008-2012. All Rights Reserved.