'Animating RecyclerView from Grid to Linear with MotionLayout

Can I animate transition of RecyclerView items from Grid layout to Linear (Horizontal) layout with use of MotionLayout?

I was unable to find any example of that.

My goal is to use RecyclerView in this MotionLayout based animated transition of custom grid: enter image description here



Sources

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

Source: Stack Overflow

Solution Source