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一起用的时候滑动冲突 #9

Closed
lewiswon opened this issue Oct 17, 2016 · 5 comments
Closed

跟CoordinatorLayout一起用的时候滑动冲突 #9

lewiswon opened this issue Oct 17, 2016 · 5 comments

Comments

@lewiswon
Copy link

当Toolbar设置了layout_scrollFlags="scroll|enterAlways",刚开始向下滑动的时候会有卡顿,但是滑过header的高度后就正常了

@canyinghao
Copy link
Owner

确实有这问题,暂时没能解决。

@lewiswon
Copy link
Author

是否跟behavior有关系?

@canyinghao
Copy link
Owner

应该是吧,我暂时也没时间弄。你可以试着修复一下。

@lewiswon
Copy link
Author

我监听了AppBarLayout的offset change,在offset!=0的时候,让canChildScrollUp返回true,暂时解决了这个问题,我看到你项目中也有相关的代码,但是好像只适用于CanRefreshLayout作为CoordinatorLayout的父布局。

@canyinghao
Copy link
Owner

嗯,我只是让CoordinatorLayout作为子视图时可刷新。

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