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

BilibiliActivity 模块 的recycleview 下拉刷新有明显卡顿 #165

Open
YukiExcalibur opened this issue Apr 6, 2017 · 6 comments
Open
Labels

Comments

@YukiExcalibur
Copy link

手机版本是4.4,下拉刷新BilibiliActivity 里的recycleview 有明显的卡顿

@jdsjlzx
Copy link
Owner

jdsjlzx commented Apr 7, 2017

你好,由于item里面嵌套了RecyclerView,导致了滑动冲突,目前没有好的解决方案!demo仅作展示,如果你有好的解决方案,欢迎提出!

@YukiExcalibur
Copy link
Author

我用了下@wuzhenhai 提供的方法,在LRecycleView上方同级的位置加了个高度0dp的RecycleView就解决了滑动冲突,请大神有时间分析下什么怎么回事

@libin1993
Copy link

在lrecyclerview里加上android:descendantFocusability="blocksDescendants"试下

@jdsjlzx
Copy link
Owner

jdsjlzx commented Jan 8, 2018

还可以试试不让内部的recycleview的自动获取焦点:

recycleview.isFocusable = false  
recycleview.isFocusableInTouchMode = false  

@MelvinCen
Copy link

@libin1993 我用你的方案解决了,在根view加你这一句

@13389809
Copy link

13389809 commented Jul 26, 2018

@libin1993 可以的。

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

No branches or pull requests

5 participants