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, unscheduleSelfpublic ColorStateListDrawable(AnimatedColorStateList list)
public void draw(@NonNull
android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic void setAlpha(int i)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic boolean isStateful()
isStateful in class android.graphics.drawable.Drawablepublic boolean setState(@NonNull
int[] stateSet)
setState in class android.graphics.drawable.Drawablepublic int getAlpha()
getAlpha in interface AlphaDrawablegetAlpha in class android.graphics.drawable.Drawable