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

嵌套布局,出现滑动冲突 #15

Open
itkun2013 opened this issue Aug 4, 2020 · 2 comments
Open

嵌套布局,出现滑动冲突 #15

itkun2013 opened this issue Aug 4, 2020 · 2 comments

Comments

@itkun2013
Copy link

CoordinatorLayout+NestedScrollView+GridViewPager,按住GridViewPager区域往上滑,appbar不滑动,交互出现问题

@mtjsoft
Copy link
Owner

mtjsoft commented Aug 7, 2020

CoordinatorLayout+NestedScrollView+GridViewPager,按住GridViewPager区域往上滑,appbar不滑动,交互出现问题

确实有这个问题。我用原生的 ViewPage2 进行嵌套,也是这个问题。后面看看处理一下。

@itkun2013
Copy link
Author

谢谢大佬,我这边也是改了很多方案,重写GridViewPager的onInterceptTouchEvent方法,直接返回true,不会出现这问题,但是GridViewPager子控件的点击事件和左右滑动被GridViewPager父控件消费掉了,有点无解,,,

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

2 participants