Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

列表快速滑动时点击上方选择文件夹偶尔会报错 #21

Closed
Leu-Z opened this issue Mar 8, 2017 · 2 comments
Closed

列表快速滑动时点击上方选择文件夹偶尔会报错 #21

Leu-Z opened this issue Mar 8, 2017 · 2 comments

Comments

@Leu-Z
Copy link

Leu-Z commented Mar 8, 2017

java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@206917cb

@ChenSiLiang
Copy link
Contributor

ChenSiLiang commented Mar 8, 2017

Fresco 建议还是使用DraweeView而不是imageview,源码中DraweeView会管理bitmap的生命周期还有其他一些缓存策略。
如果坚持要用fresco,比较好的处理方法是依赖boxing库而不是boxing-impl库,自己实现一套界面。
或者用glide,picasso

demo里的loader虽然能加载,但是速度比较慢,也跟没有使用DraweeView有关。

具体可以参考这两个issue
facebook/fresco#1550
facebook/fresco#1532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants