Android animation support for APNG & Animated WebP & Gif & Animated AVIF, High performance
Android animation support for APNG & Animated WebP & Gif & Animated AVIF, High performance
repositories {
mavenCentral()
}dependencies {
implementation 'com.github.penfeizhou.android.animation:awebp:${VERSION}'
}dependencies {
implementation 'com.github.penfeizhou.android.animation:apng:${VERSION}'
}dependencies {
implementation 'com.github.penfeizhou.android.animation:gif:${VERSION}'
}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.
…repositories {
...
mavenCentral()
}
dependencies {
implementation 'com.github.penfeizhou.android.animation:glide-plugin:${VERSION}'
}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);No open issues yet, or sync has not completed.