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

外层再嵌套一层CoordinatorLayout,实现收缩布局,子RecyclerView的fling完成后就会直接导致收缩布局展开,有解决方案吗?我试了几种方式都没法完全解决问题 #30

Open
alferd0806 opened this issue Dec 23, 2020 · 1 comment

Comments

@alferd0806
Copy link

No description provided.

@alferd0806
Copy link
Author

禁用掉ChildRecyclerView的startNestedScroll(int axes, int type)就可以了,之前想得复杂了还改了好久,直接在type=TYPE_NON_TOUCH的时候,也就是fling状态中的就直接返回false
override fun startNestedScroll(axes: Int, type: Int): Boolean { if (type == ViewCompat.TYPE_NON_TOUCH) { return false } return super.startNestedScroll(axes, type) }

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

1 participant