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

         

标签

使用APP客户端扫描二维码运行Demo


...

koral--
None
Wrocław, Poland


None

         

类似的还有....
uCrop Image Cropping Library for Android
FrescoImageViewer Customizable Android full screen image viewer for Fresco library supporting "pinch to zoom" and "swipe to dismiss" gestures
AndroidPhotoFilters AndroidPhotoFilters aims to provide fast, powerful and flexible image processing instrument for creating awesome effects on any image media.
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.