Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

APNG4Android

> 开发工具
Open source

Android animation support for APNG & Animated WebP & Gif & Animated AVIF, High performance

665 stars0 likes1 views
WebsiteGitHub

About

Android animation support for APNG & Animated WebP & Gif & Animated AVIF, High performance

Animation Android

  • Support APNG & Animated Webp & Gif & AVIF 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

gradle
repositories {
    mavenCentral()
}

Animated WebP

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

APNG

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

Gif

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

AVIF

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

Notice Before Use!

Don't put APNG resources in your drawable or mipmap directory! During the process of release building of an Android app, the aapt tool will zip & modify the frame info of the APNG file, which will lead to an abnormal behavior when playing it. Thus, please put the APNG resources in raw or assets folder instead.

Use

…

Glide support

Add dependency in build.gradle

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

Direct use

java
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);

Welcome to join the talk

Star History

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidanimatedavifanimatedwebpanimation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具