public class AlmostRippleDrawable extends StatePaintDrawable implements Animatable
Drawable.Callback, Drawable.ConstantStatemPaintANIMATION_DURATION, FRAME_DURATION| 构造器和说明 |
|---|
AlmostRippleDrawable(ColorStateList tintStateList) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
animateToNormal() |
void |
animateToPressed() |
void |
draw(Canvas canvas,
Paint paint)
Subclasses should implement this method to do the actual drawing
|
boolean |
isRunning() |
protected void |
onColorChange(int color) |
boolean |
setState(int[] stateSet) |
void |
start() |
void |
stop() |
draw, getOpacity, getPaint, isStateful, onStateChange, setColorFilter, setDither, setTintList, setTintModechangeColor, getAlpha, getColor, getColorStateList, setAlpha, setColor, setColorStateListapplyTheme, 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, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setVisible, unscheduleSelfpublic AlmostRippleDrawable(ColorStateList tintStateList)
public void draw(Canvas canvas, Paint paint)
StatePaintDrawabledraw 在类中 StatePaintDrawablecanvas - The current Canvas to draw intopaint - The Paint the Paint object that defines with the current
ColorStateList colorprotected void onColorChange(int color)
onColorChange 在类中 StatePaintDrawablepublic void animateToPressed()
public void animateToNormal()
public void start()
start 在接口中 Animatablepublic void stop()
stop 在接口中 Animatablepublic boolean isRunning()
isRunning 在接口中 Animatable