public abstract class ComparableDrawableWrapper extends Drawable implements ComparableDrawable
Drawable
.
The wrapped Drawable
must be fully released from any View
before
wrapping, otherwise internal Drawable.Callback
may be dropped.
Modifier | Constructor and Description |
---|---|
protected |
ComparableDrawableWrapper(Drawable drawable) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas canvas) |
int |
getChangingConfigurations() |
Drawable |
getCurrent() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getMinimumHeight() |
int |
getMinimumWidth() |
int |
getOpacity() |
boolean |
getPadding(Rect padding) |
int[] |
getState() |
Region |
getTransparentRegion() |
Drawable |
getWrappedDrawable() |
void |
invalidateDrawable(Drawable drawable) |
boolean |
isAutoMirrored() |
boolean |
isStateful() |
void |
jumpToCurrentState() |
protected void |
onBoundsChange(Rect bounds) |
protected boolean |
onLevelChange(int level) |
void |
scheduleDrawable(Drawable drawable,
java.lang.Runnable runnable,
long l) |
void |
setAlpha(int alpha) |
void |
setAutoMirrored(boolean mirrored) |
void |
setChangingConfigurations(int configs) |
void |
setColorFilter(ColorFilter filter) |
void |
setDither(boolean dither) |
void |
setFilterBitmap(boolean filter) |
void |
setHotspot(float x,
float y) |
void |
setHotspotBounds(int left,
int top,
int right,
int bottom) |
boolean |
setState(int[] state) |
void |
setTint(int tint) |
void |
setTintList(ColorStateList tint) |
void |
setTintMode(PorterDuff.Mode mode) |
boolean |
setVisible(boolean visible,
boolean restart) |
void |
setWrappedDrawable(Drawable drawable) |
void |
unscheduleDrawable(Drawable drawable,
java.lang.Runnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEquivalentTo
protected void onBoundsChange(Rect bounds)
public int getChangingConfigurations()
public void setChangingConfigurations(int configs)
public void setDither(boolean dither)
public void setFilterBitmap(boolean filter)
public boolean isStateful()
public boolean setState(int[] state)
public int[] getState()
public void jumpToCurrentState()
public Drawable getCurrent()
public boolean setVisible(boolean visible, boolean restart)
public Region getTransparentRegion()
public int getIntrinsicWidth()
public int getIntrinsicHeight()
public int getMinimumWidth()
public int getMinimumHeight()
public boolean getPadding(Rect padding)
protected boolean onLevelChange(int level)
public boolean isAutoMirrored()
public void setAutoMirrored(boolean mirrored)
public void setTint(int tint)
public void setTintList(ColorStateList tint)
public void setTintMode(PorterDuff.Mode mode)
public void setHotspot(float x, float y)
public void setHotspotBounds(int left, int top, int right, int bottom)
public void draw(Canvas canvas)
public void setAlpha(int alpha)
public void setColorFilter(ColorFilter filter)
public int getOpacity()
public void invalidateDrawable(Drawable drawable)
public void scheduleDrawable(Drawable drawable, java.lang.Runnable runnable, long l)
public void unscheduleDrawable(Drawable drawable, java.lang.Runnable runnable)
public Drawable getWrappedDrawable()
public void setWrappedDrawable(Drawable drawable)