-
- All Implemented Interfaces:
-
android.graphics.drawable.Animatable
public class GifDrawable extends Drawable implements Animatable
-
-
Constructor Summary
Constructors Constructor Description GifDrawable(Context context, GifDecoder decoder)
-
Method Summary
Modifier and Type Method Description voiddraw(@NonNull() Canvas canvas)voidsetAlpha(int alpha)voidsetColorFilter(@Nullable() ColorFilter colorFilter)intgetOpacity()intgetIntrinsicHeight()intgetIntrinsicWidth()voidstart()voidstop()booleanisRunning()-
Methods inherited from class android.graphics.drawable.Drawable
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, draw, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpacity, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, resolveOpacity, scheduleSelf, setAlpha, setAutoMirrored, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf -
Methods inherited from class android.graphics.drawable.Animatable
isRunning, start, stop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GifDrawable
GifDrawable(Context context, GifDecoder decoder)
-
-
Method Detail
-
setAlpha
void setAlpha(int alpha)
-
setColorFilter
void setColorFilter(@Nullable() ColorFilter colorFilter)
-
getOpacity
int getOpacity()
-
getIntrinsicHeight
int getIntrinsicHeight()
-
getIntrinsicWidth
int getIntrinsicWidth()
-
start
void start()
-
stop
void stop()
-
isRunning
boolean isRunning()
-
-
-
-