public class SquaringDrawable extends GlideDrawable
Drawable.Callback, Drawable.ConstantState
LOOP_FOREVER, LOOP_INTRINSIC
Constructor and Description |
---|
SquaringDrawable(GlideDrawable wrapped,
int side) |
Modifier and Type | Method and Description |
---|---|
void |
clearColorFilter() |
void |
draw(Canvas canvas) |
int |
getAlpha() |
Drawable.Callback |
getCallback() |
int |
getChangingConfigurations() |
Drawable.ConstantState |
getConstantState() |
Drawable |
getCurrent() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getMinimumHeight() |
int |
getMinimumWidth() |
int |
getOpacity() |
boolean |
getPadding(Rect padding) |
void |
invalidateSelf() |
boolean |
isAnimated()
Returns
true if this drawable is animated. |
boolean |
isRunning() |
Drawable |
mutate() |
void |
scheduleSelf(Runnable what,
long when) |
void |
setAlpha(int i) |
void |
setBounds(int left,
int top,
int right,
int bottom) |
void |
setBounds(Rect bounds) |
void |
setChangingConfigurations(int configs) |
void |
setColorFilter(ColorFilter colorFilter) |
void |
setColorFilter(int color,
PorterDuff.Mode mode) |
void |
setDither(boolean dither) |
void |
setFilterBitmap(boolean filter) |
void |
setLoopCount(int loopCount)
Sets the number of times the animation should loop.
|
boolean |
setVisible(boolean visible,
boolean restart) |
void |
start() |
void |
stop() |
void |
unscheduleSelf(Runnable what) |
copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getLevel, getState, getTransparentRegion, inflate, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, setAutoMirrored, setCallback, setLevel, setState
public SquaringDrawable(GlideDrawable wrapped, int side)
public void setBounds(int left, int top, int right, int bottom)
public void setChangingConfigurations(int configs)
setChangingConfigurations
in class Drawable
public int getChangingConfigurations()
getChangingConfigurations
in class Drawable
public void setFilterBitmap(boolean filter)
setFilterBitmap
in class Drawable
public Drawable.Callback getCallback()
getCallback
in class Drawable
public void setColorFilter(int color, PorterDuff.Mode mode)
setColorFilter
in class Drawable
public void clearColorFilter()
clearColorFilter
in class Drawable
public Drawable getCurrent()
getCurrent
in class Drawable
public boolean setVisible(boolean visible, boolean restart)
setVisible
in class Drawable
public int getIntrinsicWidth()
getIntrinsicWidth
in class Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class Drawable
public int getMinimumWidth()
getMinimumWidth
in class Drawable
public int getMinimumHeight()
getMinimumHeight
in class Drawable
public boolean getPadding(Rect padding)
getPadding
in class Drawable
public void invalidateSelf()
invalidateSelf
in class Drawable
public void unscheduleSelf(Runnable what)
unscheduleSelf
in class Drawable
public void scheduleSelf(Runnable what, long when)
scheduleSelf
in class Drawable
public void setColorFilter(ColorFilter colorFilter)
setColorFilter
in class Drawable
public int getOpacity()
getOpacity
in class Drawable
public boolean isAnimated()
GlideDrawable
true
if this drawable is animated.isAnimated
in class GlideDrawable
public void setLoopCount(int loopCount)
GlideDrawable
()
} returns true
. A loop count of <=0 indicates loop forever.setLoopCount
in class GlideDrawable
public void start()
public void stop()
public boolean isRunning()
public Drawable.ConstantState getConstantState()
getConstantState
in class Drawable