Skip to content

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

Description

@tmac1999

当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进来的,是不是还有一点问题。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions