public static class EditStyledText.EditStyledTextSpans.HorizontalLineDrawable extends ShapeDrawable
ShapeDrawable.ShaderFactory
Drawable.Callback, Drawable.ConstantState
Constructor and Description |
---|
HorizontalLineDrawable(int color,
int width,
Spannable spannable) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas canvas)
Draw in its bounds (set via setBounds) respecting optional effects such
as alpha (set via setAlpha) and color filter (set via setColorFilter).
|
void |
renewBounds(int width) |
applyTheme, clearMutated, getAlpha, getChangingConfigurations, getConstantState, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getOutline, getPadding, getPaint, getShaderFactory, getShape, inflate, inflateTag, isStateful, mutate, onBoundsChange, onDraw, onStateChange, setAlpha, setColorFilter, setDither, setIntrinsicHeight, setIntrinsicWidth, setPadding, setPadding, setShaderFactory, setShape, setTintList, setTintMode
canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getColorFilter, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isVisible, jumpToCurrentState, obtainAttributes, onLayoutDirectionChanged, onLevelChange, parseTintMode, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setVisible, setXfermode, unscheduleSelf
public HorizontalLineDrawable(int color, int width, Spannable spannable)
public void draw(Canvas canvas)
Drawable
draw
in class ShapeDrawable
canvas
- The canvas to draw intopublic void renewBounds(int width)