public class ApngDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable, java.lang.Runnable
| Constructor and Description |
|---|
ApngDrawable(android.content.Context context,
android.graphics.Bitmap bitmap,
android.net.Uri uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
static ApngDrawable |
getFromView(android.view.View view) |
int |
getNumFrames() |
int |
getNumPlays() |
int |
getOpacity() |
boolean |
isRunning() |
void |
recycleBitmaps()
Cleanup bitmap cached used for playing an animation
|
void |
run() |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
setNumPlays(int numPlays)
Specify number of repeating.
|
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, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic ApngDrawable(android.content.Context context,
android.graphics.Bitmap bitmap,
android.net.Uri uri)
public static ApngDrawable getFromView(android.view.View view)
public int getNumPlays()
public void setNumPlays(int numPlays)
numPlays - Number of repeatingpublic int getNumFrames()
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 run()
run in interface java.lang.Runnablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic 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 recycleBitmaps()