Skip to content

MotionLayout scroll transition not working #10

Description

@LetrixZ

I'm trying to run a MotionLayout transition when RecyclerView is scrolled. The problem is that using this LayoutManager the onSwipe isn't being called. With LinearLayoutManager or GridLayoutManager I don't have this problem.
It only works if I scroll the view that is affected.

<Transition
    app:constraintSetEnd="@+id/end"
    app:constraintSetStart="@+id/start"
    app:duration="0">
    <OnSwipe
        app:dragDirection="dragUp"
        app:moveWhenScrollAtTop="false"
        app:touchAnchorId="@+id/recycler_view"
        app:touchAnchorSide="top"
        motion:onTouchUp="stop" />
</Transition>

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