Class GifDrawable

  • All Implemented Interfaces:
    android.graphics.drawable.Animatable

    public class GifDrawable
    extends android.graphics.drawable.Drawable
    implements android.graphics.drawable.Animatable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.graphics.drawable.Drawable

        android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState
    • Constructor Summary

      Constructors 
      Constructor Description
      GifDrawable​(android.content.Context context, GifDecoder decoder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void draw​(android.graphics.Canvas canvas)  
      int getIntrinsicHeight()  
      int getIntrinsicWidth()  
      int getOpacity()  
      boolean isRunning()  
      void setAlpha​(int alpha)  
      void setColorFilter​(android.graphics.ColorFilter colorFilter)  
      void start()  
      void stop()  
      • Methods inherited from class 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, hasFocusStateSpecified, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GifDrawable

        public GifDrawable​(android.content.Context context,
                           GifDecoder decoder)
    • Method Detail

      • draw

        public void draw​(@NonNull
                         android.graphics.Canvas canvas)
        Specified by:
        draw in class android.graphics.drawable.Drawable
      • setAlpha

        public void setAlpha​(int alpha)
        Specified by:
        setAlpha in class android.graphics.drawable.Drawable
      • setColorFilter

        public void setColorFilter​(@Nullable
                                   android.graphics.ColorFilter colorFilter)
        Specified by:
        setColorFilter in class android.graphics.drawable.Drawable
      • getOpacity

        public int getOpacity()
        Specified by:
        getOpacity in class android.graphics.drawable.Drawable
      • getIntrinsicHeight

        public int getIntrinsicHeight()
        Overrides:
        getIntrinsicHeight in class android.graphics.drawable.Drawable
      • getIntrinsicWidth

        public int getIntrinsicWidth()
        Overrides:
        getIntrinsicWidth in class android.graphics.drawable.Drawable
      • start

        public void start()
        Specified by:
        start in interface android.graphics.drawable.Animatable
      • stop

        public void stop()
        Specified by:
        stop in interface android.graphics.drawable.Animatable
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface android.graphics.drawable.Animatable