Java Code Examples for android.text.style.IconMarginSpan

The following are top voted examples for showing how to use android.text.style.IconMarginSpan. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Android-Spans   File: Span.java   View source code 4 votes vote down vote up
public static Node iconMargin(Bitmap bitmap, Object... nodes) {
    return new SpanNode(new IconMarginSpan(bitmap), nodes);
}
 
Example 2
Project: Android-Spans   File: Span.java   View source code 4 votes vote down vote up
public static Node iconMargin(Bitmap bitmap, @Px Integer padding, Object... nodes) {
    return new SpanNode(new IconMarginSpan(bitmap, padding), nodes);
}
 
Example 3
Project: snippety   File: Snippety.java   View source code 2 votes vote down vote up
/**
 * 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;
}