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

recycleview滑动到底部,切换标签后露出topview,再切回来recycleview下拉触发刷新 #45

Open
Jack-Tomas-Liu opened this issue Sep 18, 2017 · 0 comments

Comments

@Jack-Tomas-Liu
Copy link

问题复现过程:
1 viewpage有两个fragment(计为A,B)填充。

2 A上滑翻页,到第三页,切换到B界面

3 B下拉刷新,切到A界面

4 这时A界面下拉触发整体的刷新效果,而不是A界面的内容回到第一页

================

onInterceptTouchEvent方法添加
逻辑判断:如果头部正在显示,并且fragment的内容不是第一页,那么让内部自己处理事件。

if((!isTopHidden&&c.getTop()!=0)){
                            return false;
                        }
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