Comments (3)
You can disable the gif decoder before it solves.
GlideApp.with(imageView)
.load(url)
.set(AnimationDecoderOption.DISABLE_ANIMATION_GIF_DECODER, true)
.into(imageView);
from apng4android.
Thanks, that solved my issue
from apng4android.
@penfeizhou
It not work for me, app still freeze when scroll.
`val assetLoader = AssetStreamLoader(context, "img_thumbnail_effects.png")
private val apngDrawable = APNGDrawable(assetLoader)
fun bind(consultant: ConsultantResponse) {
Glide.with(binding.ivThumbnailAvatar)
.load(apngDrawable)
.skipMemoryCache(true)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.set(AnimationDecoderOption.DISABLE_ANIMATION_GIF_DECODER, true)
.set(AnimationDecoderOption.DISABLE_ANIMATION_APNG_DECODER, true)
.set(AnimationDecoderOption.NO_ANIMATION_BOUNDS_MEASURE, true)
.into(binding.ivThumbnailAvatar)
}`
from apng4android.
Related Issues (20)
- 使用Glide插件 加载没有动画效果了? HOT 1
- How to load APNG file from Shared AssetFolder.? HOT 2
- Apng fails to render with versions newer then 2.23.0 HOT 9
- Seekbar 的 thumb 中无法使用 HOT 4
- 调用WebPEncoder.fromGif实现gif转webp,webp出现闪的问题 HOT 13
- 虚拟内存变大 HOT 1
- 虚拟内存变大
- AVIF 的动画能够支持一下吗? HOT 1
- Is there a way to use this with compose? HOT 2
- Gif memory leak HOT 8
- Make APNGDecoder#getLoopCount public method
- [QUESTION]: libwebp vulnerabilty HOT 5
- notifyItemChanged 刷新之后其他item会暂停
- 使用ImageSpan时,不会自动播放,有没有不使用定时刷新invalidate的方案 HOT 7
- recycleview加载apng我没有直接使用glide加载,我是先通过下载到本地的方式再转的APNGDrawable.fromFile(filePath),会偶现动画不播的情况
- [bug] onRender:Buffer not large enough for pixels HOT 1
- Glide 支持 DiskCacheStrategy.ALL 和 DiskCacheStrategy.RESOURCE 示意代码
- Fatal Exception: java.lang.OutOfMemoryError android.graphics.Bitmap.nativeCreate (Bitmap.java) android.graphics.Bitmap.createBitmap (Bitmap.java:991)
- AVIF module is unavailable on maven HOT 1
- [BUG] image not loading (using glide plugin) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apng4android.