Build 1.0_r1(from source)

android.text.style
Class DrawableMarginSpan

java.lang.Object
  extended by android.text.style.DrawableMarginSpan
All Implemented Interfaces:
LeadingMarginSpan, LineHeightSpan, ParagraphStyle, WrapTogetherSpan

public class DrawableMarginSpan
extends Object
implements LeadingMarginSpan, LineHeightSpan


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.style.LeadingMarginSpan
LeadingMarginSpan.Standard
 
Constructor Summary
DrawableMarginSpan(Drawable b)
           
DrawableMarginSpan(Drawable b, int pad)
           
 
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
 

Constructor Detail

DrawableMarginSpan

public DrawableMarginSpan(Drawable b)

DrawableMarginSpan

public DrawableMarginSpan(Drawable b,
                          int pad)
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature