DynamicDrawableSpan

Class of android.text.style · DynamicDrawableSpan.java · Android's reference

public abstract class DynamicDrawableSpan extends ReplacementSpan

DynamicDrawableSpan ← ReplacementSpan ← MetricAffectingSpan ← CharacterStyle

A span drawn as a drawable, aligned to the bottom, the baseline or the center of its line.

Extended in the framework by

Fields

public static final int ALIGN_BOTTOM = 0 source
public static final int ALIGN_BASELINE = 1 source
public static final int ALIGN_CENTER = 2 source
protected final int mVerticalAlignment source

Constructors

public DynamicDrawableSpan() source
protected DynamicDrawableSpan(int verticalAlignment) source

Methods

public int getVerticalAlignment() source
public abstract Drawable getDrawable() source
public int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) source
public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.