我正在RecyclerView中显示GIF图像。 代码:
Glide.with(acitivity)
.load(url)
.placeholder(R.drawable.image_placeholder)
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.listener(listener)
.into(viewHolder.imageView);
如果我保持包含此RecyclerView的碎片打开,应用程序将使用非常高的CPU(约40%)。如果我使用该碎片1-2分钟,手机会发热。对于GIF图像来说这是正常的吗?我在这里做错了什么吗?
android.view.Choreographer$FrameDisplayEventReceiver.run android.view.Choreographer.doFrame android.view.Choreographer.doCallbacks android.view.Choreographer$CallbackRecord.run android.view.ViewRootImpl$TraversalRunnable.run android.view.ViewRootImpl.doTraversal android.view.ViewRootImpl.performTraversals android.view.ViewRootImpl.performDraw android.view.ViewRootImpl.draw android.view.ThreadedRenderer.draw
- Prashant Borde