public class FrameSequenceDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
| Modifier and Type | Class and Description |
|---|---|
static interface |
FrameSequenceDrawable.LoopListener |
| Constructor and Description |
|---|
FrameSequenceDrawable(FrameSequence frameSequence,
DropFramesStrategy dropFramesStrategy,
ContextDetails contextDetails) |
FrameSequenceDrawable(FrameSequence frameSequence,
DropFramesStrategy dropFramesStrategy,
com.gfycat.framesequence.FrameSequenceDrawable.BitmapProvider bitmapProvider,
android.graphics.Point renderSize,
ContextDetails contextDetails) |
FrameSequenceDrawable(FrameSequence frameSequence,
DropFramesStrategy dropFramesStrategy,
android.graphics.Point renderSize,
ContextDetails contextDetails) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Marks the drawable as permanently recycled (and thus unusable), and releases any owned
Bitmaps drawable to its BitmapProvider, if attached.
|
void |
draw(android.graphics.Canvas canvas) |
protected void |
finalize() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
long |
getLoopsCount() |
int |
getOpacity() |
boolean |
isDestroyed() |
boolean |
isRunning() |
void |
requestInvalidate() |
void |
setAlpha(int alpha) |
void |
setCircleMaskEnabled(boolean circleMaskEnabled)
Pass true to mask the shape of the animated drawing content to a circle.
|
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
void |
setDebugMode(boolean debugMode) |
void |
setFilterBitmap(boolean filter) |
void |
setLoopListener(FrameSequenceDrawable.LoopListener loopListener) |
boolean |
setVisible(boolean visible,
boolean restart) |
void |
start() |
void |
stop() |
void |
unscheduleSelf(java.lang.Runnable what) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintModepublic FrameSequenceDrawable(FrameSequence frameSequence, DropFramesStrategy dropFramesStrategy, ContextDetails contextDetails)
public FrameSequenceDrawable(FrameSequence frameSequence, DropFramesStrategy dropFramesStrategy, android.graphics.Point renderSize, ContextDetails contextDetails)
public FrameSequenceDrawable(FrameSequence frameSequence, DropFramesStrategy dropFramesStrategy, com.gfycat.framesequence.FrameSequenceDrawable.BitmapProvider bitmapProvider, android.graphics.Point renderSize, ContextDetails contextDetails)
public void setLoopListener(FrameSequenceDrawable.LoopListener loopListener)
public final void setCircleMaskEnabled(boolean circleMaskEnabled)
The masking circle will be the largest circle contained in the Drawable's bounds. Masking is done with BitmapShader, incurring minimal additional draw cost.
public boolean isDestroyed()
public void destroy()
If no BitmapProvider is attached to the drawable, recycle() is called on the Bitmaps.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic void requestInvalidate()
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 unscheduleSelf(java.lang.Runnable what)
unscheduleSelf in class android.graphics.drawable.Drawablepublic boolean setVisible(boolean visible,
boolean restart)
setVisible in class android.graphics.drawable.Drawablepublic long getLoopsCount()
public void setFilterBitmap(boolean filter)
setFilterBitmap in class android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter in class android.graphics.drawable.Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth in class android.graphics.drawable.Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic void setDebugMode(boolean debugMode)