public class RippleDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable, android.view.View.OnTouchListener
| Modifier and Type | Class and Description |
|---|---|
static class |
RippleDrawable.Builder |
static class |
RippleDrawable.Mask |
| Modifier and Type | Field and Description |
|---|---|
static int |
DELAY_CLICK_AFTER_RELEASE |
static int |
DELAY_CLICK_NONE |
static int |
DELAY_CLICK_UNTIL_RELEASE |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
draw(android.graphics.Canvas canvas) |
android.graphics.drawable.Drawable |
getBackgroundDrawable() |
long |
getClickDelayTime() |
int |
getDelayClickType() |
int |
getOpacity() |
boolean |
isRunning() |
boolean |
isStateful() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
protected boolean |
onStateChange(int[] state) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
scheduleSelf(java.lang.Runnable what,
long when) |
void |
setAlpha(int alpha) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable backgroundDrawable) |
void |
setColorFilter(android.graphics.ColorFilter filter) |
void |
setDelayClickType(int type) |
void |
setMask(int type,
int topLeftCornerRadius,
int topRightCornerRadius,
int bottomRightCornerRadius,
int bottomLeftCornerRadius,
int left,
int top,
int right,
int bottom) |
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, isVisible, jumpToCurrentState, mutate, onLevelChange, resolveOpacity, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic static final int DELAY_CLICK_NONE
public static final int DELAY_CLICK_UNTIL_RELEASE
public static final int DELAY_CLICK_AFTER_RELEASE
public void setBackgroundDrawable(android.graphics.drawable.Drawable backgroundDrawable)
public android.graphics.drawable.Drawable getBackgroundDrawable()
public int getDelayClickType()
public void setDelayClickType(int type)
public void setMask(int type,
int topLeftCornerRadius,
int topRightCornerRadius,
int bottomRightCornerRadius,
int bottomLeftCornerRadius,
int left,
int top,
int right,
int bottom)
public void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter filter)
setColorFilter in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic long getClickDelayTime()
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange in class android.graphics.drawable.Drawablepublic boolean isStateful()
isStateful in class android.graphics.drawable.Drawableprotected boolean onStateChange(int[] state)
onStateChange in class android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic boolean onTouch(android.view.View v,
android.view.MotionEvent event)
onTouch in interface android.view.View.OnTouchListenerpublic void cancel()
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.Animatablepublic void scheduleSelf(java.lang.Runnable what,
long when)
scheduleSelf in class android.graphics.drawable.Drawable