public class RevealDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
| Modifier and Type | Class and Description |
|---|---|
static class |
RevealDrawable.ColorChangeTask |
| Constructor and Description |
|---|
RevealDrawable(int color) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeColor(int color,
int duration,
android.view.animation.Interpolator interpolator,
float x,
float y,
boolean out) |
void |
changeColor(RevealDrawable.ColorChangeTask... tasks) |
void |
draw(android.graphics.Canvas canvas) |
int |
getCurColor() |
int |
getOpacity() |
boolean |
isRunning() |
void |
scheduleSelf(java.lang.Runnable what,
long when) |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
setCurColor(int color) |
void |
start() |
void |
stop() |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic int getCurColor()
public void setCurColor(int color)
public void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic void changeColor(int color,
int duration,
android.view.animation.Interpolator interpolator,
float x,
float y,
boolean out)
public void changeColor(RevealDrawable.ColorChangeTask... tasks)
public void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic 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.Animatablepublic void scheduleSelf(java.lang.Runnable what,
long when)
scheduleSelf in class android.graphics.drawable.Drawable