FlowLayoutManager
FlowLayoutManager copied to clipboard
MotionLayout scroll transition not working
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>