Motion layout is a subclass of constraint layout through that you can add simple to complex animation. In this tutorial, you will learn about how to get started with motion layout through code and add a simple animation of transitioning a view from top to the bottom by changing the background color of it.