public abstract class StateDrawable
extends android.graphics.drawable.Drawable
Subclasses should implement doDraw(Canvas, Paint)
| 构造器和说明 |
|---|
StateDrawable(android.content.res.ColorStateList tintStateList) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getAlpha() |
int |
getOpacity() |
boolean |
isStateful() |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
setColorStateList(android.content.res.ColorStateList tintStateList) |
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, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelfpublic StateDrawable(@NonNull
android.content.res.ColorStateList tintStateList)
public boolean isStateful()
isStateful 在类中 android.graphics.drawable.Drawablepublic boolean setState(int[] stateSet)
setState 在类中 android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity 在类中 android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw 在类中 android.graphics.drawable.Drawablepublic void setColorStateList(@NonNull
android.content.res.ColorStateList tintStateList)
public void setAlpha(int alpha)
setAlpha 在类中 android.graphics.drawable.Drawablepublic int getAlpha()
getAlpha 在类中 android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter 在类中 android.graphics.drawable.Drawable