Index
All Classes|All Packages
A
- addAnimationListener(AnimationListener) - Method in class pl.droidsonroids.gif.GifDrawable
-
Adds a new animation listener
- addView(Drawable.Callback) - Method in class pl.droidsonroids.gif.MultiCallback
-
Associates given
Drawable.Callback. - AnimationListener - Interface in pl.droidsonroids.gif
-
Interface which can be used to run some code when particular animation event occurs.
- AssetFileDescriptorSource(AssetFileDescriptor) - Constructor for class pl.droidsonroids.gif.InputSource.AssetFileDescriptorSource
-
Constructs new source.
- AssetSource(AssetManager, String) - Constructor for class pl.droidsonroids.gif.InputSource.AssetSource
-
Constructs new source.
B
- Beta - Annotation Type in pl.droidsonroids.gif.annotations
-
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.
- build() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Appropriate constructor wrapper.
- ByteArraySource(byte[]) - Constructor for class pl.droidsonroids.gif.InputSource.ByteArraySource
-
Constructs new source.
C
- canPause() - Method in class pl.droidsonroids.gif.GifDrawable
-
Checks whether pause is supported.
- canSeekBackward() - Method in class pl.droidsonroids.gif.GifDrawable
-
Checks whether seeking backward can be performed.
- canSeekForward() - Method in class pl.droidsonroids.gif.GifDrawable
-
Checks whether seeking forward can be performed.
- CLOSE_FAILED - pl.droidsonroids.gif.GifError
-
Failed to close given input.
- CornerRadiusTransform - Class in pl.droidsonroids.gif.transforms
-
Transformwhich adds rounded corners. - CornerRadiusTransform(float) - Constructor for class pl.droidsonroids.gif.transforms.CornerRadiusTransform
- createFromResource(Resources, int) - Static method in class pl.droidsonroids.gif.GifDrawable
-
An
GifDrawable(Resources, int)wrapper but returns null instead of throwing exception if creation fails. - CREATOR - Static variable in class pl.droidsonroids.gif.GifAnimationMetaData
D
- DATA_TOO_BIG - pl.droidsonroids.gif.GifError
-
Number of pixels bigger than width * height.
- describeContents() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- description - Variable in enum pl.droidsonroids.gif.GifError
-
Human readable description of the error.
- DirectByteBufferSource(ByteBuffer) - Constructor for class pl.droidsonroids.gif.InputSource.DirectByteBufferSource
-
Constructs new source.
- draw(Canvas) - Method in class pl.droidsonroids.gif.GifDrawable
-
Reads and renders new frame if needed then draws last rendered frame.
E
- EOF_TOO_SOON - pl.droidsonroids.gif.GifError
-
Image EOF detected before image complete.
F
- FileDescriptorSource(FileDescriptor) - Constructor for class pl.droidsonroids.gif.InputSource.FileDescriptorSource
-
Constructs new source.
- FileSource(File) - Constructor for class pl.droidsonroids.gif.InputSource.FileSource
-
Constructs new source.
- FileSource(String) - Constructor for class pl.droidsonroids.gif.InputSource.FileSource
-
Constructs new source.
- finalize() - Method in class pl.droidsonroids.gif.GifTexImage2D
- from(byte[]) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(byte[]) - from(ContentResolver, Uri) - Method in class pl.droidsonroids.gif.GifDrawableInit
- from(AssetFileDescriptor) - Method in class pl.droidsonroids.gif.GifDrawableInit
- from(AssetManager, String) - Method in class pl.droidsonroids.gif.GifDrawableInit
- from(Resources, int) - Method in class pl.droidsonroids.gif.GifDrawableInit
- from(File) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(java.io.File) - from(FileDescriptor) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(java.io.FileDescriptor) - from(InputStream) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(java.io.InputStream) - from(String) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(java.lang.String) - from(ByteBuffer) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Wrapper of
GifDrawable(java.nio.ByteBuffer)
G
- getAllocationByteCount() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
-
Like
GifDrawable.getAllocationByteCount()but does not include memory needed for backingBitmap. - getAllocationByteCount() - Method in class pl.droidsonroids.gif.GifDecoder
- getAllocationByteCount() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns size of the memory needed to store pixels of this object.
- getAlpha() - Method in class pl.droidsonroids.gif.GifDrawable
- getAudioSessionId() - Method in class pl.droidsonroids.gif.GifDrawable
-
Used by MediaPlayer.
- getBounds() - Method in class pl.droidsonroids.gif.transforms.CornerRadiusTransform
-
Returns current transform bounds - latest received by
CornerRadiusTransform.onBoundsChange(Rect). - getBufferPercentage() - Method in class pl.droidsonroids.gif.GifDrawable
-
Used by MediaPlayer for secondary progress bars.
- getColorFilter() - Method in class pl.droidsonroids.gif.GifDrawable
- getComment() - Method in class pl.droidsonroids.gif.GifDecoder
- getComment() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns GIF comment
- getCornerRadius() - Method in class pl.droidsonroids.gif.GifDrawable
- getCornerRadius() - Method in class pl.droidsonroids.gif.transforms.CornerRadiusTransform
- getCurrentFrame() - Method in class pl.droidsonroids.gif.GifDrawable
-
Retrieves a copy of currently buffered frame.
- getCurrentFrameIndex() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns zero-based index of recently rendered frame in given loop or -1 when drawable is recycled.
- getCurrentFrameIndex() - Method in class pl.droidsonroids.gif.GifTexImage2D
- getCurrentLoop() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns zero-based index of currently played animation loop.
- getCurrentPosition() - Method in class pl.droidsonroids.gif.GifDrawable
-
Retrieves elapsed time from the beginning of a current loop of animation.
- getDrawableAllocationByteCount(GifDrawable, int) - Method in class pl.droidsonroids.gif.GifAnimationMetaData
-
Like
GifAnimationMetaData.getAllocationByteCount()but includes also backingBitmapand takes sample size into account. - getDuration() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getDuration() - Method in class pl.droidsonroids.gif.GifDecoder
- getDuration() - Method in class pl.droidsonroids.gif.GifDrawable
-
Retrieves duration of one loop of the animation.
- getDuration() - Method in class pl.droidsonroids.gif.GifTexImage2D
- getError() - Method in class pl.droidsonroids.gif.GifDrawable
-
Retrieves last error which is also the indicator of current GIF status.
- getErrorCode() - Method in enum pl.droidsonroids.gif.GifError
- getExecutor() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Getter for the executor.
- getFrameByteCount() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns the minimum number of bytes that can be used to store pixels of the single frame.
- getFrameDuration(int) - Method in class pl.droidsonroids.gif.GifDecoder
- getFrameDuration(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns duration of the given frame (in milliseconds).
- getFrameDuration(int) - Method in class pl.droidsonroids.gif.GifTexImage2D
- getHeight() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getHeight() - Method in class pl.droidsonroids.gif.GifDecoder
- getHeight() - Method in class pl.droidsonroids.gif.GifTexImage2D
- getInputSource() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Getter for the input source.
- getInputSourceByteCount() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns length of the input source obtained at the opening time or -1 if length cannot be determined.
- getIntrinsicHeight() - Method in class pl.droidsonroids.gif.GifDrawable
- getIntrinsicWidth() - Method in class pl.droidsonroids.gif.GifDrawable
- getIOException() - Method in class pl.droidsonroids.gif.GifTextureView
-
Returns last
IOExceptionoccurred during loading or playing GIF (in such case onlyGifIOExceptioncan be returned. - getLoopCount() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getLoopCount() - Method in class pl.droidsonroids.gif.GifDecoder
- getLoopCount() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns loop count previously read from GIF's application extension block.
- getMessage() - Method in exception pl.droidsonroids.gif.GifIOException
- getMetadataAllocationByteCount() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getMetadataAllocationByteCount() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns the maximum possible size of the allocated memory used to store pixels and metadata of this object.
- getNumberOfFrames() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getNumberOfFrames() - Method in class pl.droidsonroids.gif.GifDecoder
- getNumberOfFrames() - Method in class pl.droidsonroids.gif.GifDrawable
- getNumberOfFrames() - Method in class pl.droidsonroids.gif.GifTexImage2D
- getOldDrawable() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Getter for the old drawable.
- getOpacity() - Method in class pl.droidsonroids.gif.GifDrawable
- getOptions() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Getter for the GIF options.
- getPaint() - Method in class pl.droidsonroids.gif.GifDrawable
- getPixel(int, int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns the
Colorat the specified location. - getPixels(int[]) - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns in pixels[] a copy of the data in the current frame.
- getScaleType() - Method in class pl.droidsonroids.gif.GifTextureView
- getSourceLength() - Method in class pl.droidsonroids.gif.GifDecoder
- getSurfaceTextureListener() - Method in class pl.droidsonroids.gif.GifTextureView
-
Always returns null since changing
TextureView.SurfaceTextureListeneris not supported. - getTransform() - Method in class pl.droidsonroids.gif.GifDrawable
- getTransform(Matrix) - Method in class pl.droidsonroids.gif.GifTextureView
-
Returns the transform associated with this texture view, either set explicitly by
GifTextureView.setTransform(Matrix)or computed according to the current scale type. - getWidth() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- getWidth() - Method in class pl.droidsonroids.gif.GifDecoder
- getWidth() - Method in class pl.droidsonroids.gif.GifTexImage2D
- GifAnimationMetaData - Class in pl.droidsonroids.gif
-
Lightweight version of
GifDrawableused to retrieve metadata of GIF only, without having to allocate the memory for its pixels. - GifAnimationMetaData(byte[]) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from byte array.
It can be larger than size of the GIF data. - GifAnimationMetaData(ContentResolver, Uri) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from
Uriwhich is resolved usingresolver. - GifAnimationMetaData(AssetFileDescriptor) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from AssetFileDescriptor.
- GifAnimationMetaData(AssetManager, String) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from asset.
- GifAnimationMetaData(Resources, int) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves from resource.
- GifAnimationMetaData(File) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Equivalent to GifMetadata(file.getPath())}
- GifAnimationMetaData(FileDescriptor) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from FileDescriptor
- GifAnimationMetaData(InputStream) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from InputStream.
- GifAnimationMetaData(String) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Constructs metadata from given file path.
Only metadata is read, no graphic data is decoded here. - GifAnimationMetaData(ByteBuffer) - Constructor for class pl.droidsonroids.gif.GifAnimationMetaData
-
Retrieves metadata from
ByteBuffer. - GifDecoder - Class in pl.droidsonroids.gif
-
GifDecoder allows lightweight access to GIF frames, without wrappers like Drawable or View.
- GifDecoder(InputSource) - Constructor for class pl.droidsonroids.gif.GifDecoder
-
Constructs new GifDecoder.
- GifDecoder(InputSource, GifOptions) - Constructor for class pl.droidsonroids.gif.GifDecoder
-
Constructs new GifDecoder
- GifDrawable - Class in pl.droidsonroids.gif
-
A
Drawablewhich can be used to hold GIF images, especially animations. - GifDrawable(byte[]) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from byte array.
It can be larger than size of the GIF data. - GifDrawable(ContentResolver, Uri) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from
Uriwhich is resolved usingresolver. - GifDrawable(AssetFileDescriptor) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from AssetFileDescriptor.
- GifDrawable(AssetManager, String) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from asset.
- GifDrawable(Resources, int) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from resource.
- GifDrawable(File) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Equivalent to GifDrawable(file.getPath())}
- GifDrawable(FileDescriptor) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from FileDescriptor
- GifDrawable(InputStream) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from InputStream.
- GifDrawable(String) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Constructs drawable from given file path.
Only metadata is read, no graphic data is decoded here. - GifDrawable(ByteBuffer) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from
ByteBuffer. - GifDrawable(InputSource, GifDrawable, ScheduledThreadPoolExecutor, boolean, GifOptions) - Constructor for class pl.droidsonroids.gif.GifDrawable
-
Creates drawable from
InputSource. - GifDrawableBuilder - Class in pl.droidsonroids.gif
-
Builder for
GifDrawablewhich can be used to construct new drawables by reusing old ones. - GifDrawableBuilder() - Constructor for class pl.droidsonroids.gif.GifDrawableBuilder
- GifDrawableInit<T extends GifDrawableInit<T>> - Class in pl.droidsonroids.gif
-
The base class for using the builder pattern with subclasses.
- GifDrawableInit() - Constructor for class pl.droidsonroids.gif.GifDrawableInit
- GifError - Enum in pl.droidsonroids.gif
-
Encapsulation of decoding errors occurring in native code.
- GifImageButton - Class in pl.droidsonroids.gif
-
An
ImageButtonwhich tries treating background and src asGifDrawable - GifImageButton(Context) - Constructor for class pl.droidsonroids.gif.GifImageButton
-
A corresponding superclass constructor wrapper.
- GifImageButton(Context, AttributeSet) - Constructor for class pl.droidsonroids.gif.GifImageButton
-
Like equivalent from superclass but also try to interpret src and background attributes as
GifDrawable. - GifImageButton(Context, AttributeSet, int) - Constructor for class pl.droidsonroids.gif.GifImageButton
-
Like equivalent from superclass but also try to interpret src and background attributes as GIFs.
- GifImageButton(Context, AttributeSet, int, int) - Constructor for class pl.droidsonroids.gif.GifImageButton
-
Like equivalent from superclass but also try to interpret src and background attributes as GIFs.
- GifImageView - Class in pl.droidsonroids.gif
-
An
ImageViewwhich tries treating background and src asGifDrawable - GifImageView(Context) - Constructor for class pl.droidsonroids.gif.GifImageView
-
A corresponding superclass constructor wrapper.
- GifImageView(Context, AttributeSet) - Constructor for class pl.droidsonroids.gif.GifImageView
-
Like equivalent from superclass but also try to interpret src and background attributes as
GifDrawable. - GifImageView(Context, AttributeSet, int) - Constructor for class pl.droidsonroids.gif.GifImageView
-
Like equivalent from superclass but also try to interpret src and background attributes as GIFs.
- GifImageView(Context, AttributeSet, int, int) - Constructor for class pl.droidsonroids.gif.GifImageView
-
Like equivalent from superclass but also try to interpret src and background attributes as GIFs.
- GifIOException - Exception in pl.droidsonroids.gif
-
Exception encapsulating
GifErrors. - GifOptions - Class in pl.droidsonroids.gif
-
Options controlling various GIF parameters similar to
BitmapFactory.Options - GifOptions() - Constructor for class pl.droidsonroids.gif.GifOptions
- GifTexImage2D - Class in pl.droidsonroids.gif
-
Provides support for animated GIFs in OpenGL.
- GifTexImage2D(InputSource, GifOptions) - Constructor for class pl.droidsonroids.gif.GifTexImage2D
-
Constructs new GifTexImage2D.
- GifTextureView - Class in pl.droidsonroids.gif
-
TextureViewwhich can display animated GIFs. - GifTextureView(Context) - Constructor for class pl.droidsonroids.gif.GifTextureView
- GifTextureView(Context, AttributeSet) - Constructor for class pl.droidsonroids.gif.GifTextureView
- GifTextureView(Context, AttributeSet, int) - Constructor for class pl.droidsonroids.gif.GifTextureView
- GifTextureView(Context, AttributeSet, int, int) - Constructor for class pl.droidsonroids.gif.GifTextureView
- GifTextureView.PlaceholderDrawListener - Interface in pl.droidsonroids.gif
-
This listener can be used to be notified when the
GifTextureViewcontent placeholder can be drawn. - GifTextView - Class in pl.droidsonroids.gif
-
A
TextViewwhich handles GIFs as compound drawables. - GifTextView(Context) - Constructor for class pl.droidsonroids.gif.GifTextView
-
A corresponding superclass constructor wrapper.
- GifTextView(Context, AttributeSet) - Constructor for class pl.droidsonroids.gif.GifTextView
-
Like equivalent from superclass but also try to interpret compound drawables defined in XML attributes as GIFs.
- GifTextView(Context, AttributeSet, int) - Constructor for class pl.droidsonroids.gif.GifTextView
-
Like equivalent from superclass but also try to interpret compound drawables defined in XML attributes as GIFs.
- GifTextView(Context, AttributeSet, int, int) - Constructor for class pl.droidsonroids.gif.GifTextView
-
Like equivalent from superclass but also try to interpret compound drawables defined in XML attributes as GIFs.
- glTexImage2D(int, int) - Method in class pl.droidsonroids.gif.GifTexImage2D
- glTexSubImage2D(int, int) - Method in class pl.droidsonroids.gif.GifTexImage2D
I
- IMAGE_DEFECT - pl.droidsonroids.gif.GifError
-
Image is defective, decoding aborted.
- IMG_NOT_CONFINED - pl.droidsonroids.gif.GifError
-
Image size exceeds screen size.
- initialize(Context) - Static method in class pl.droidsonroids.gif.LibraryLoader
-
Initializes loader with given `Context`.
- InputSource - Class in pl.droidsonroids.gif
-
Abstract class for all input sources, to be used with
GifTextureView - InputSource.AssetFileDescriptorSource - Class in pl.droidsonroids.gif
-
Input using
AssetFileDescriptoras a source. - InputSource.AssetSource - Class in pl.droidsonroids.gif
-
Input using android asset as source.
- InputSource.ByteArraySource - Class in pl.droidsonroids.gif
-
Input using byte array as a source.
- InputSource.DirectByteBufferSource - Class in pl.droidsonroids.gif
-
Input using
ByteBufferas a source. - InputSource.FileDescriptorSource - Class in pl.droidsonroids.gif
-
Input using
FileDescriptoras a source. - InputSource.FileSource - Class in pl.droidsonroids.gif
-
Input using
Fileor path as source. - InputSource.InputStreamSource - Class in pl.droidsonroids.gif
-
Input using
InputStreamas a source. - InputSource.ResourcesSource - Class in pl.droidsonroids.gif
-
Input using android resource (raw or drawable) as a source.
- InputSource.UriSource - Class in pl.droidsonroids.gif
-
Input using
Urias source. - InputStreamSource(InputStream) - Constructor for class pl.droidsonroids.gif.InputSource.InputStreamSource
-
Constructs new source.
- INVALID_BYTE_BUFFER - pl.droidsonroids.gif.GifError
-
Invalid and/or indirect byte buffer specified.
- INVALID_IMG_DIMS - pl.droidsonroids.gif.GifError
-
Deprecated.This error is no longer thrown.
- INVALID_SCR_DIMS - pl.droidsonroids.gif.GifError
-
Invalid screen size, dimensions must be positive.
- invalidateDrawable(Drawable) - Method in class pl.droidsonroids.gif.MultiCallback
- invalidateSelf() - Method in class pl.droidsonroids.gif.GifDrawable
- isAnimated() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- isAnimated() - Method in class pl.droidsonroids.gif.GifDecoder
- isAnimationCompleted() - Method in class pl.droidsonroids.gif.GifDrawable
-
Returns whether all animation loops has ended.
- isPlaying() - Method in class pl.droidsonroids.gif.GifDrawable
-
Equivalent of
GifDrawable.isRunning() - isRecycled() - Method in class pl.droidsonroids.gif.GifDrawable
- isRenderingTriggeredOnDraw() - Method in class pl.droidsonroids.gif.GifDrawableInit
- isRunning() - Method in class pl.droidsonroids.gif.GifDrawable
- isStateful() - Method in class pl.droidsonroids.gif.GifDrawable
L
- LibraryLoader - Class in pl.droidsonroids.gif
-
Helper used to work around native libraries loading on some systems.
M
- mPaint - Variable in class pl.droidsonroids.gif.GifDrawable
-
Paint used to draw on a Canvas
- MultiCallback - Class in pl.droidsonroids.gif
-
Drawable.Callbackwhich allows singleDrawableto be associated with multiple callbacks, eg. - MultiCallback() - Constructor for class pl.droidsonroids.gif.MultiCallback
-
Equivalent to
MultiCallback(boolean)withfalsevalue. - MultiCallback(boolean) - Constructor for class pl.droidsonroids.gif.MultiCallback
-
Set
useViewInvalidatetotrueif displayedDrawableis not supported byDrawable.Callback.invalidateDrawable(Drawable)of the target.
N
- NO_COLOR_MAP - pl.droidsonroids.gif.GifError
-
Neither global nor local color map found.
- NO_ERROR - pl.droidsonroids.gif.GifError
-
Special value indicating lack of errors.
- NO_FRAMES - pl.droidsonroids.gif.GifError
-
No frames found, at least one frame required.
- NO_IMAG_DSCR - pl.droidsonroids.gif.GifError
-
No image descriptor detected.
- NO_SCRN_DSCR - pl.droidsonroids.gif.GifError
-
No screen descriptor detected.
- NOT_ENOUGH_MEM - pl.droidsonroids.gif.GifError
-
Failed to allocate required memory.
- NOT_GIF_FILE - pl.droidsonroids.gif.GifError
-
Data is not in GIF format.
- NOT_READABLE - pl.droidsonroids.gif.GifError
-
Given file was not opened for read.
O
- onAnimationCompleted(int) - Method in interface pl.droidsonroids.gif.AnimationListener
-
Called when a single loop of the animation is completed.
- onAttachedToWindow() - Method in class pl.droidsonroids.gif.GifTextView
- onBoundsChange(Rect) - Method in class pl.droidsonroids.gif.GifDrawable
- onBoundsChange(Rect) - Method in class pl.droidsonroids.gif.transforms.CornerRadiusTransform
- onBoundsChange(Rect) - Method in interface pl.droidsonroids.gif.transforms.Transform
-
Called by
GifDrawablewhen its bounds changes byGifDrawable.onBoundsChange(Rect)and when transform is associated usingGifDrawable.setTransform(Transform). - onDetachedFromWindow() - Method in class pl.droidsonroids.gif.GifTextureView
- onDetachedFromWindow() - Method in class pl.droidsonroids.gif.GifTextView
- onDraw(Canvas, Paint, Bitmap) - Method in class pl.droidsonroids.gif.transforms.CornerRadiusTransform
- onDraw(Canvas, Paint, Bitmap) - Method in interface pl.droidsonroids.gif.transforms.Transform
-
Called by
GifDrawablewhen itsGifDrawable.draw(Canvas)is called. - onDrawPlaceholder(Canvas) - Method in interface pl.droidsonroids.gif.GifTextureView.PlaceholderDrawListener
-
Called when surface is ready and placeholder has to be drawn.
- onRestoreInstanceState(Parcelable) - Method in class pl.droidsonroids.gif.GifImageButton
- onRestoreInstanceState(Parcelable) - Method in class pl.droidsonroids.gif.GifImageView
- onRestoreInstanceState(Parcelable) - Method in class pl.droidsonroids.gif.GifTextureView
- onRestoreInstanceState(Parcelable) - Method in class pl.droidsonroids.gif.GifTextView
- onSaveInstanceState() - Method in class pl.droidsonroids.gif.GifImageButton
- onSaveInstanceState() - Method in class pl.droidsonroids.gif.GifImageView
- onSaveInstanceState() - Method in class pl.droidsonroids.gif.GifTextureView
- onSaveInstanceState() - Method in class pl.droidsonroids.gif.GifTextView
- onStateChange(int[]) - Method in class pl.droidsonroids.gif.GifDrawable
- OPEN_FAILED - pl.droidsonroids.gif.GifError
-
Failed to open given input.
- options(GifOptions) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Indicates whether the content of this source is opaque.
P
- pause() - Method in class pl.droidsonroids.gif.GifDrawable
-
Equivalent of
GifDrawable.stop() - pl.droidsonroids.gif - package pl.droidsonroids.gif
-
Animated GIF library for Android.
- pl.droidsonroids.gif.annotations - package pl.droidsonroids.gif.annotations
- pl.droidsonroids.gif.transforms - package pl.droidsonroids.gif.transforms
-
Transformations performed before drawing GIF frames.
R
- READ_FAILED - pl.droidsonroids.gif.GifError
-
Failed to read from given input.
- reason - Variable in exception pl.droidsonroids.gif.GifIOException
-
Reason which caused an exception
- recycle() - Method in class pl.droidsonroids.gif.GifDecoder
- recycle() - Method in class pl.droidsonroids.gif.GifDrawable
-
Frees any memory allocated native way.
- recycle() - Method in class pl.droidsonroids.gif.GifTexImage2D
- removeAnimationListener(AnimationListener) - Method in class pl.droidsonroids.gif.GifDrawable
-
Removes an animation listener
- removeView(Drawable.Callback) - Method in class pl.droidsonroids.gif.MultiCallback
-
Disassociates given
Drawable.Callback. - renderingTriggeredOnDraw(boolean) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Sets whether rendering of the next frame is scheduled after drawing current one (so animation will be paused if drawing does not happen) or just after rendering frame (no matter if it is drawn or not).
- reset() - Method in class pl.droidsonroids.gif.GifDrawable
-
Causes the animation to start over.
- ResourcesSource(Resources, int) - Constructor for class pl.droidsonroids.gif.InputSource.ResourcesSource
-
Constructs new source.
- REWIND_FAILED - pl.droidsonroids.gif.GifError
-
Input source rewind has failed, animation is stopped.
S
- sampleSize(int) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Sample size controlling subsampling, see
GifOptions.setInSampleSize(int)for more details. - scheduleDrawable(Drawable, Runnable, long) - Method in class pl.droidsonroids.gif.MultiCallback
- seekTo(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Seeks animation to given absolute position (within given loop) and refreshes the canvas.
Ifpositionis greater than duration of the loop of animation (or whole animation if there is no loop) then animation will be sought to the end, no exception will be thrown.
NOTE: all frames from current (or first one if seeking backward) to desired one must be rendered sequentially to perform seeking. - seekToBlocking(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Like
GifDrawable.seekTo(int)but performs operation synchronously on current thread - seekToFrame(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Like
GifDrawable.seekTo(int)but uses index of the frame instead of time. - seekToFrame(int) - Method in class pl.droidsonroids.gif.GifTexImage2D
-
Seeks to given frame
- seekToFrame(int, Bitmap) - Method in class pl.droidsonroids.gif.GifDecoder
- seekToFrameAndGet(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Like
GifDrawable.seekToFrame(int)but performs operation synchronously and returns that frame. - seekToPositionAndGet(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Like
GifDrawable.seekTo(int)but performs operation synchronously and returns that frame. - seekToTime(int, Bitmap) - Method in class pl.droidsonroids.gif.GifDecoder
- self() - Method in class pl.droidsonroids.gif.GifDrawableBuilder
- self() - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Used in accordance with `getThis()` pattern.
- setAlpha(int) - Method in class pl.droidsonroids.gif.GifDrawable
- setBackgroundResource(int) - Method in class pl.droidsonroids.gif.GifImageButton
- setBackgroundResource(int) - Method in class pl.droidsonroids.gif.GifImageView
- setBackgroundResource(int) - Method in class pl.droidsonroids.gif.GifTextView
- setColorFilter(ColorFilter) - Method in class pl.droidsonroids.gif.GifDrawable
- setCompoundDrawablesRelativeWithIntrinsicBounds(int, int, int, int) - Method in class pl.droidsonroids.gif.GifTextView
- setCompoundDrawablesWithIntrinsicBounds(int, int, int, int) - Method in class pl.droidsonroids.gif.GifTextView
- setCornerRadius(float) - Method in class pl.droidsonroids.gif.GifDrawable
-
Sets the corner radius to be applied when drawing the bitmap.
- setCornerRadius(float) - Method in class pl.droidsonroids.gif.transforms.CornerRadiusTransform
-
Sets the corner radius to be applied when drawing the bitmap.
- setDither(boolean) - Method in class pl.droidsonroids.gif.GifDrawable
- setFilterBitmap(boolean) - Method in class pl.droidsonroids.gif.GifDrawable
- setFreezesAnimation(boolean) - Method in class pl.droidsonroids.gif.GifImageButton
-
Sets whether animation position is saved in
GifImageButton.onSaveInstanceState()and restored inGifImageButton.onRestoreInstanceState(Parcelable) - setFreezesAnimation(boolean) - Method in class pl.droidsonroids.gif.GifImageView
-
Sets whether animation position is saved in
GifImageView.onSaveInstanceState()and restored inGifImageView.onRestoreInstanceState(Parcelable) - setFreezesAnimation(boolean) - Method in class pl.droidsonroids.gif.GifTextureView
-
Sets whether animation position is saved in
GifTextureView.onSaveInstanceState()and restored inGifTextureView.onRestoreInstanceState(Parcelable) - setFreezesAnimation(boolean) - Method in class pl.droidsonroids.gif.GifTextView
-
Sets whether animation position is saved in
GifTextView.onSaveInstanceState()and restored inGifTextView.onRestoreInstanceState(Parcelable). - setImageMatrix(Matrix) - Method in class pl.droidsonroids.gif.GifTextureView
-
Wrapper of
GifTextureView.setTransform(Matrix). - setImageResource(int) - Method in class pl.droidsonroids.gif.GifImageButton
- setImageResource(int) - Method in class pl.droidsonroids.gif.GifImageView
- setImageURI(Uri) - Method in class pl.droidsonroids.gif.GifImageButton
-
Sets the content of this GifImageView to the specified Uri.
- setImageURI(Uri) - Method in class pl.droidsonroids.gif.GifImageView
-
Sets the content of this GifImageView to the specified Uri.
- setInIsOpaque(boolean) - Method in class pl.droidsonroids.gif.GifOptions
-
Indicates whether the content is opaque.
- setInputSource(InputSource) - Method in class pl.droidsonroids.gif.GifTextureView
-
Sets the source of the animation.
- setInputSource(InputSource, GifTextureView.PlaceholderDrawListener) - Method in class pl.droidsonroids.gif.GifTextureView
-
Sets the source of the animation and optionally placeholder drawer.
- setInSampleSize(int) - Method in class pl.droidsonroids.gif.GifOptions
-
If set to a value
> 1, requests the decoder to subsample the original frames, returning a smaller frame buffer to save memory. - setLoopCount(int) - Method in class pl.droidsonroids.gif.GifDrawable
-
Sets loop count of the animation.
- setOpaque(boolean) - Method in class pl.droidsonroids.gif.GifTextureView
-
Indicates whether the content of this GifTextureView is opaque.
- setRenderingTriggeredOnDraw(boolean) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Equivalent to
GifDrawableInit.renderingTriggeredOnDraw(boolean). - setScaleType(ImageView.ScaleType) - Method in class pl.droidsonroids.gif.GifTextureView
-
Controls how the image should be resized or moved to match the size of this GifTextureView.
- setSpeed(float) - Method in class pl.droidsonroids.gif.GifDrawable
-
Sets new animation speed factor.
Note: If animation is in progress (GifDrawable.draw(Canvas)) was already called) then effects will be visible starting from the next frame. - setSpeed(float) - Method in class pl.droidsonroids.gif.GifTexImage2D
-
Sets new animation speed factor.
- setSpeed(float) - Method in class pl.droidsonroids.gif.GifTextureView
-
Equivalent of
GifDrawable.setSpeed(float). - setSurfaceTexture(SurfaceTexture) - Method in class pl.droidsonroids.gif.GifTextureView
-
Always throws
UnsupportedOperationException. - setSurfaceTextureListener(TextureView.SurfaceTextureListener) - Method in class pl.droidsonroids.gif.GifTextureView
-
Always throws
UnsupportedOperationException. - setTintList(ColorStateList) - Method in class pl.droidsonroids.gif.GifDrawable
- setTintMode(PorterDuff.Mode) - Method in class pl.droidsonroids.gif.GifDrawable
- setTransform(Matrix) - Method in class pl.droidsonroids.gif.GifTextureView
-
Works like
TextureView.setTransform(Matrix)but transform will take effect only if scale type is set toImageView.ScaleType.MATRIXthrough XML attribute or viaGifTextureView.setScaleType(ScaleType) - setTransform(Transform) - Method in class pl.droidsonroids.gif.GifDrawable
-
Specify a
Transformimplementation to customize how the GIF's current Bitmap is drawn. - setVisible(boolean, boolean) - Method in class pl.droidsonroids.gif.GifDrawable
-
Sets whether this drawable is visible.
- start() - Method in class pl.droidsonroids.gif.GifDrawable
-
Starts the animation.
- startDecoderThread() - Method in class pl.droidsonroids.gif.GifTexImage2D
-
Creates frame buffer and starts decoding thread.
- stop() - Method in class pl.droidsonroids.gif.GifDrawable
-
Stops the animation.
- stopDecoderThread() - Method in class pl.droidsonroids.gif.GifTexImage2D
-
Stops decoder thread and releases frame buffer.
T
- taskExecutor(ScheduledThreadPoolExecutor) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Sets or resets executor for rendering tasks.
- threadPoolSize(int) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Sets thread pool size for rendering tasks.
- toString() - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- toString() - Method in class pl.droidsonroids.gif.GifDrawable
- Transform - Interface in pl.droidsonroids.gif.transforms
-
Interface to support clients performing custom transformations before the current GIF Bitmap is drawn.
U
- UNKNOWN - pl.droidsonroids.gif.GifError
-
Unknown error, should never appear
- unscheduleDrawable(Drawable, Runnable) - Method in class pl.droidsonroids.gif.MultiCallback
- UriSource(ContentResolver, Uri) - Constructor for class pl.droidsonroids.gif.InputSource.UriSource
-
Constructs new source.
V
- valueOf(String) - Static method in enum pl.droidsonroids.gif.GifError
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum pl.droidsonroids.gif.GifError
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- with(GifDrawable) - Method in class pl.droidsonroids.gif.GifDrawableInit
-
Sets drawable to be reused when creating new one.
- writeToParcel(Parcel, int) - Method in class pl.droidsonroids.gif.GifAnimationMetaData
- WRONG_RECORD - pl.droidsonroids.gif.GifError
-
Wrong record type detected.
All Classes|All Packages