Use the Glide plugin to load animations
masterThe library provides a Glide plugin that allows you to load animated formats (like APNG, WebP, etc.) using standard Glide syntax.
- Add the
glide-plugindependency to yourbuild.gradle. - Use
Glide.with(...).load(...).into(...)as you normally would.
// Add the plugin dependency
dependencies {
implementation 'com.github.penfeizhou.android.animation:glide-plugin:${VERSION}'
}// Use Glide to load an animated URL or file
Glide.with(imageView)
.load("https://misc.aotu.io/ONE-SUNDAY/SteamEngine.png")
.into(imageView);