Views and Drawable for displaying animated GIFs on Android

Min SDK   14
Latest Commit   2017-09-09 21:36:55
License   unknown

Github   https://github.com/koral--/android-gif-drawable

         

标签

Using app client to scan QR code to run Demo


...

koral--
None
Wrocław, Poland


None

         

Similarily...
CircleImageView A circular ImageView for Android
Crescento Add curve at bottom of image views and relative layouts.
TextDrawable This light-weight library provides images with letter/text like the Gmail app. It extends the Drawable class thus can be used with existing/custom/network ImageView classes. Also included is a fluent interface for creati
README

README.md

android-gif-drawable

Maven Central Build Status Android Arsenal Android-Libs Android Weekly API Javadocs

Views and Drawable for animated GIFs in Android.

Overview

Bundled GIFLib via JNI is used to render frames. This way should be more efficient than WebView or Movie classes.

Javadoc

Setup

Gradle (Android Studio)

Insert the following dependency to build.gradle file of your project.

dependencies {
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
}

Note that Maven central repository should be defined eg. in top-level build.gradle like this:

buildscript {
    repositories {
        mavenCentral()
    }
}
allprojects {
    repositories {
        mavenCentral()
    }
}

Gradle, snapshot repository

Current development builds (build from dev branch) are published to OSS snapshot repository. To use them, specify repository URL in repositories block:

repositories {
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
}

Maven dependency

<dependency>
    <groupId>pl.droidsonroids.gif</groupId>
    <artifactId>android-gif-drawable</artifactId>
    <version>insert latest version here</version>
    <type>aar</type>
</dependency>

Eclipse

See Sample eclipse project with setup instructions.

Download

Latest release downloads

Requirements

  • Android 2.3+ (API level 9+)
  • for GifTextureView Android 4.0+ (API level 14+) and hardware-accelerated rendering
  • for GifTexImage2D OpenGL ES 2.0+

Building from source

Usage

Sample project

See sample directory. Sample project is under construction. Not all features are covered yet.