添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

从类继承的方法 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)
设置是否启用严格模式。 严格模式在支持局部更新的 Gif 图中十分有用,能够避免 Gif.gotoFrame(int) Gif.getFrame(int) 产生错误的结果。 启用严格模式会带来一些性能损耗!
setStrict 在接口中 Gif
strict - true - 启用严格模式;false - 关闭严格模式。

setOnFrameListener

public void setOnFrameListener(GifDecoder.OnFrameListener onFrameListener)
设置帧绘制监听器。 当一帧将要被绘制时,会进行回调。
setOnFrameListener 在接口中 Gif
onFrameListener -