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
当ConvenientBanner作为listview等子view,postDelayed内存泄漏 #77
Comments
ConvenientBanner 可以省略掉这个Handler吧? postDelayed removeCallbacks View都有相应方法的 |
貌似找到原因 当ConvenientBanner 作为RecyclerView 或者ListView 的子项时 RecyclerView 会回收布局 以供重用,此时
会重复调用 - - |
这里重复调用是你的写法问题吧?你在外部给convenientBanner初始化一次,设置为RecyclerView的head,以后都是使用这一个View,为什么要重复调用呢? |
是的 我是用的是这个库 https://github.com/mrmans0n/smart-adapters |
smart-adapters 支持 RecyclerView 、 ListView 添加个扩展还是挺方便的 |
这里的代码太暴力 ....................... |
No description provided.
The text was updated successfully, but these errors were encountered: