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, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, resolveOpacity, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelf
public 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.Drawable
public void setColorFilter(android.graphics.ColorFilter filter)
setColorFilter
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public long getClickDelayTime()
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange
in class android.graphics.drawable.Drawable
public boolean isStateful()
isStateful
in class android.graphics.drawable.Drawable
protected boolean onStateChange(int[] state)
onStateChange
in class android.graphics.drawable.Drawable
public void draw(android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public boolean onTouch(android.view.View v, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener
public void cancel()
public void start()
start
in interface android.graphics.drawable.Animatable
public void stop()
stop
in interface android.graphics.drawable.Animatable
public boolean isRunning()
isRunning
in interface android.graphics.drawable.Animatable
public void scheduleSelf(java.lang.Runnable what, long when)
scheduleSelf
in class android.graphics.drawable.Drawable