public class ColorStateListDrawable extends android.graphics.drawable.Drawable implements AlphaDrawable
Constructor and Description |
---|
ColorStateListDrawable(AnimatedColorStateList list) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getAlpha() |
int |
getOpacity() |
boolean |
isStateful() |
void |
setAlpha(int i) |
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
boolean |
setState(int[] stateSet) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintList, setTintMode, setVisible, unscheduleSelf
public ColorStateListDrawable(AnimatedColorStateList list)
public void draw(@NonNull android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public void setAlpha(int i)
setAlpha
in class android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public boolean isStateful()
isStateful
in class android.graphics.drawable.Drawable
public boolean setState(@NonNull int[] stateSet)
setState
in class android.graphics.drawable.Drawable
public int getAlpha()
getAlpha
in interface AlphaDrawable
getAlpha
in class android.graphics.drawable.Drawable