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.
public static final int ALIGN_BOTTOM = 0 sourcepublic static final int ALIGN_BASELINE = 1 sourcepublic static final int ALIGN_CENTER = 2 sourceprotected final int mVerticalAlignment sourcepublic DynamicDrawableSpan() sourceprotected DynamicDrawableSpan(int verticalAlignment) sourcepublic int getVerticalAlignment() sourcepublic abstract Drawable getDrawable() sourcepublic int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) sourcepublic void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) sourceMade 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.