Custom views are created, when an interactive UI & UX is required, to add value to an application.
Custom Views are unique and based on the specific requirement that can not be catered by platform default views
Custom Views when added to the parent layout makes the code more readable as the underlying functionality is written in a separate file instead of main fragment
Custom views are written mostly in large scale apps where similar UI components will be used in multiple places very frequently, to maintain a standard user…
MotionLayout is a new class, available in the ConstraintLayout 2.0 library, that helps manage both motion and animation.
MotionLayout is a kind of
ConstraintLayout, that's why it's included in the
ConstraintLayout library. More precisely, it's a descendant of
ConstraintLayout, that extends the parent's functionality with animation capability.
Animations are a great way to enhance an app experience. You can use animations to: