public class AlmostRippleDrawable extends StateDrawable implements android.graphics.drawable.Animatable
| Constructor and Description |
|---|
AlmostRippleDrawable(android.content.res.ColorStateList tintStateList) |
| Modifier and Type | Method and Description |
|---|---|
void |
animateToNormal() |
void |
animateToPressed() |
void |
doDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
Subclasses should implement this method to do the actual drawing
|
boolean |
isRunning() |
void |
setColor(android.content.res.ColorStateList tintStateList) |
boolean |
setState(int[] stateSet) |
void |
start() |
void |
stop() |
draw, getAlpha, getOpacity, isStateful, setAlpha, setColorFilter, setColorStateListapplyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic AlmostRippleDrawable(android.content.res.ColorStateList tintStateList)
public void setColor(android.content.res.ColorStateList tintStateList)
public void doDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
StateDrawablecanvas - The current Canvas to draw intopaint - The Paint preconfigurred with the current
ColorStateList colorpublic boolean setState(int[] stateSet)
setState in class StateDrawablepublic void animateToPressed()
public void animateToNormal()
public void start()
start in interface android.graphics.drawable.Animatablepublic void stop()
stop in interface android.graphics.drawable.Animatablepublic boolean isRunning()
isRunning in interface android.graphics.drawable.Animatable