All Projects → penfeizhou → Apng4android

penfeizhou / Apng4android

Licence: apache-2.0
Android animation support for APNG & Animated WebP & Gif,High performance

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Apng4android

Glidewebpdecoder
A Glide WebpDecoder Intergration Library for decoding and displaying webp images
Stars: ✭ 484 (+118.02%)
Mutual labels:  webp, glide
Acgn Community
A community app for news,animation,music and novels developed material design style.
Stars: ✭ 193 (-13.06%)
Mutual labels:  glide
Iread
Using Retrofit2,RxJava,RxKotlin,OkHttp,lottie,Material Design combined with Kotlin to display the wanAndroid's article and Douban hot movie and zhihu daily newspaper.
Stars: ✭ 158 (-28.83%)
Mutual labels:  glide
Imagepipeline
Folio Image Pipeline is an image loading and caching framework for iOS clients
Stars: ✭ 170 (-23.42%)
Mutual labels:  webp
Draggableimageviewer
大图浏览 & 图片查看&拖拽退出。类似于微信、B站的图片 & 视频浏览器。
Stars: ✭ 153 (-31.08%)
Mutual labels:  glide
The Movie Db Kotlin
The Movie DB app using Kotlin with updated Android features
Stars: ✭ 176 (-20.72%)
Mutual labels:  glide
Coolweather
Weather App that uses Android best practices. Android Jetpack, clean architecture. Written in Kotlin
Stars: ✭ 154 (-30.63%)
Mutual labels:  glide
Awesome Wanandroid
⚡致力于打造一款极致体验的 http://www.wanandroid.com/ 客户端,知识和美是可以并存的哦QAQn(*≧▽≦*)n
Stars: ✭ 2,525 (+1037.39%)
Mutual labels:  glide
Anko Core
基于Kotlin+Anko+协程+Retrofit2的demo,完全采用anko DSL布局,也可以作为Android快速开发框架,大量常用工具类,扩展函数
Stars: ✭ 189 (-14.86%)
Mutual labels:  glide
Transformers
An Android transformation library providing a variety of image transformations for Coil, Glide, Picasso, and Fresco.
Stars: ✭ 167 (-24.77%)
Mutual labels:  glide
Glidetovectoryou
Load SVGs in Android with Glide
Stars: ✭ 165 (-25.68%)
Mutual labels:  glide
Glide
https://github.com/Masterminds/glide
Stars: ✭ 160 (-27.93%)
Mutual labels:  glide
Cartoon
漫画软件——使用MVP + Retrofit + RxJava开发
Stars: ✭ 186 (-16.22%)
Mutual labels:  glide
Mvvmarchitecture
MVVM 框架,采用 Kotlin+Jetpack,可自由配置功能,欢迎 star,fork,issue
Stars: ✭ 159 (-28.38%)
Mutual labels:  glide
Twelvety
An Eleventy starter project built to be fast
Stars: ✭ 195 (-12.16%)
Mutual labels:  webp
Juzimi
句子迷APP,MVP架构,Okhttp + Retrofit + RxJava,图片加载Glide,数据库Object-box
Stars: ✭ 156 (-29.73%)
Mutual labels:  glide
Glideslider
Glide Image Slider
Stars: ✭ 163 (-26.58%)
Mutual labels:  glide
Webp Hero
browser polyfill for the webp image format
Stars: ✭ 171 (-22.97%)
Mutual labels:  webp
Imageprocessor
📷 A fluent wrapper around System.Drawing for the processing of image files.
Stars: ✭ 2,452 (+1004.5%)
Mutual labels:  webp
Progressmanager
⏳ Listen the progress of downloading and uploading in Okhttp, compatible Retrofit and Glide (一行代码即可监听 App 中所有网络链接的上传以及下载进度, 包括 Glide 的图片加载进度).
Stars: ✭ 2,463 (+1009.46%)
Mutual labels:  glide

Animation Android

  • Support APNG & Animated Webp & Gif in Android
  • Efficient decoder
  • Support Drawable usage and glide library module
  • Support animation play control
  • Support still image
  • Low memory usage

中文文档

Released versions

Usages

Add dependency in build.gradle

repositories {
    jcenter()
}

Animated WebP

dependencies {
    implementation 'com.github.penfeizhou.android.animation:awebp:${VERSION}'
}

APNG

dependencies {
    implementation 'com.github.penfeizhou.android.animation:apng:${VERSION}'
}

Gif

dependencies {
    implementation 'com.github.penfeizhou.android.animation:gif:${VERSION}'
}

Use

// Load from asset file
AssetStreamLoader assetLoader = new AssetStreamLoader(context, "wheel.png");


// Load form Resource
ResourceStreamLoader resourceLoader = new ResourceStreamLoader(context, R.drawable.sample);


// Load from file
FileStreamLoader fileLoader = new FileStreamLoader("/sdcard/Pictures/1.webp");


// Create APNG Drawable
APNGDrawable apngDrawable = new APNGDrawable(assetLoader);

//Create Animated webp drawable
WebPDrawable webpDrawable = new WebPDrawable(assetLoader);

// Auto play
imageView.setImageDrawable(apngDrawable);


// Not needed.default controlled by content
apngDrawable.setLoopLimit(10);


// Implement Animatable2Compat
drawable.registerAnimationCallback(new Animatable2Compat.AnimationCallback() {
    @Override
    public void onAnimationStart(Drawable drawable) {
        super.onAnimationStart(drawable);
    }
});

Glide support

Add dependency in build.gradle

repositories {
    ...
    jcenter()
}
dependencies {
    implementation 'com.github.penfeizhou.android.animation:glide-plugin:${VERSION}'
}

Direct use

Glide.with(imageView).load("https://misc.aotu.io/ONE-SUNDAY/SteamEngine.png").into(imageView);
Glide.with(imageView).load("https://isparta.github.io/compare-webp/image/gif_webp/webp/2.webp").into(imageView);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].