'OnSwipe not working when SwipeRefreshLayout in MotionLayout

I faced with the issue with MotionLayout when creating collapsing header with motion layout and SwipeRefreshLayout with RecyclerView under the header. So when I try to swipe on SwipeRefreshLayout up, the animation is not starting. All views are in MotionLayout.

Any ideas how to solve this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source