MotionLayout is intended to move, resize, and animate UI elements with which users interact, such as buttons and title bars. Motion in your app should not be simply a gratuitous special effect in your application. It should be used to help users understand what your application is doing. For more information on designing your app with motion, see the Material Design section on
https://material.io/design/motion
Getting started with MotionLayout
Follow the steps described in the following link.
https://developer.android.com/training/constraint-layout/motion-layout#getting_started