从类继承的方法 android.graphics.drawable.Drawable
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, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf
createDrawable
public static GifDrawable createDrawable(java.lang.String filePath)
使用文件绝对路径创建一个 GifDrawable
filePath
- 文件绝对路径
createDrawable
public static GifDrawable createDrawable(byte[] bytes)
使用二进制数组创建一个 GifDrawable
bytes
- 二进制数组
public void setStrict(boolean strict)
setStrict
在接口中
Gif
strict
- true - 启用严格模式;false - 关闭严格模式。
setOnFrameListener
public void setOnFrameListener(GifDecoder.OnFrameListener onFrameListener)
设置帧绘制监听器。
当一帧将要被绘制时,会进行回调。
setOnFrameListener
在接口中
Gif
onFrameListener
-