Java 类android.text.style.IconMarginSpan 实例源码

项目:Android-Spans    文件:Span.java   
public static Node iconMargin(Bitmap bitmap, Object... nodes) {
    return new SpanNode(new IconMarginSpan(bitmap), nodes);
}
项目:Android-Spans    文件:Span.java   
public static Node iconMargin(Bitmap bitmap, @Px Integer padding, Object... nodes) {
    return new SpanNode(new IconMarginSpan(bitmap, padding), nodes);
}
项目:snippety    文件:Snippety.java   
/**
 * add image bullets with specified padding
 *
 * @param bitmap  bitmap to add as bullet
 * @param padding padding between bullet and text
 * @return Snippety
 */
public Snippety bullet(Bitmap bitmap, int padding) {
    spans.add(new IconMarginSpan(bitmap, padding));
    return this;
}