Java Code Examples for android.text.style.DrawableMarginSpan

The following are top voted examples for showing how to use android.text.style.DrawableMarginSpan. 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 drawableMargin(Drawable drawable, Object... nodes) {
    return new SpanNode(new DrawableMarginSpan(drawable), nodes);
}
 
Example 2
Project: Android-Spans   File: Span.java   View source code 4 votes vote down vote up
public static Node drawableMargin(Drawable drawable, @Px Integer padding, Object... nodes) {
    return new SpanNode(new DrawableMarginSpan(drawable, padding), nodes);
}