public class VectorDrawable extends android.graphics.drawable.Drawable implements AlphaDrawable
Constructor and Description |
---|
VectorDrawable(android.content.res.Resources res,
int resId) |
VectorDrawable(com.caverock.androidsvg.SVG svg,
int intWidth,
int intHeight) |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
void |
draw(android.graphics.Canvas canvas) |
int |
getAlpha() |
android.graphics.drawable.Drawable.ConstantState |
getConstantState() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
android.graphics.drawable.Drawable |
mutate() |
void |
setAlpha(int alpha) |
void |
setBounds(int left,
int top,
int right,
int bottom) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
boolean |
setState(int[] stateSet) |
void |
setTint(int tintColor) |
void |
setTintList(android.content.res.ColorStateList tint) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTintMode, setVisible, unscheduleSelf
public VectorDrawable(com.caverock.androidsvg.SVG svg, int intWidth, int intHeight)
public VectorDrawable(android.content.res.Resources res, int resId)
public static void clearCache()
public void setBounds(int left, int top, int right, int bottom)
setBounds
in class android.graphics.drawable.Drawable
public void draw(@NonNull android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public void setAlpha(int alpha)
setAlpha
in class android.graphics.drawable.Drawable
public int getAlpha()
getAlpha
in interface AlphaDrawable
getAlpha
in class android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public int getIntrinsicWidth()
getIntrinsicWidth
in class android.graphics.drawable.Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class android.graphics.drawable.Drawable
public android.graphics.drawable.Drawable.ConstantState getConstantState()
getConstantState
in class android.graphics.drawable.Drawable
@NonNull public android.graphics.drawable.Drawable mutate()
mutate
in class android.graphics.drawable.Drawable
public void setTint(int tintColor)
setTint
in class android.graphics.drawable.Drawable
public void setTintList(android.content.res.ColorStateList tint)
setTintList
in class android.graphics.drawable.Drawable
public boolean setState(@NonNull int[] stateSet)
setState
in class android.graphics.drawable.Drawable