Example of MotionLayout created programmatically
To read and possibly understand this code, you need to know the basics of MotionLayout and how to create a custom view to be used in XML. The project, to keep it simple, is not created with production code in mind meaning that resources are not extracted, code lacks style management etc.
ActivableImageView - custom imageView that changes alpha and color upon activation
XML created motion layout that uses ActivableImageView from Example 1
StepProgressBarView - custom view with steps to show progress