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

topview为横向RecyclerView时,滑动导致头部缩回。 #36

Open
tmac1999 opened this issue Jan 29, 2018 · 0 comments
Open

topview为横向RecyclerView时,滑动导致头部缩回。 #36

tmac1999 opened this issue Jan 29, 2018 · 0 comments

Comments

@tmac1999
Copy link

tmac1999 commented Jan 29, 2018

当id_stickynavlayout_topview包含可以左右滑动的RecyclerView时,左右滑动recyclerView会导致头部topview缩回。看了一下StickyNavLayout中下面这几行代码导致了topview缩回。

        if (velocityY >= 0) {
            mOffsetAnimator.setIntValues(currentOffset, topHeight);
            mOffsetAnimator.start();
        }

velocityY > 0 或者注释掉 mOffsetAnimator.start();可以解决。但似乎破坏了velocityY>=0时上滑的动画逻辑?
看了一下这里的代码是后来模仿AppLayoutBar merge进来的,是不是还有一点问题。

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