{ 360 | AnDev } 2018 ConstraintSet ★ Encapsulate all the rules for a layout ★ You can apply ConstraintSet to an existing layout ★ You can switch between multiple ConstraintSets ★ With TransitionManager, basic animation capabilities
{ 360 | AnDev } 2018 Custom Attributes ★ Extension to ConstraintSet ★ Define values for any attribute ★ Specify the type ★ Specify the setter name string color integer float dimension boolean
public interface TransitionListener { void onTransitionChange(MotionLayout motionLayout, int startId, int endId, float progress); void onTransitionCompleted(MotionLayout motionLayout, int currentId); }
{ 360 | AnDev } 2018 Documentation ★ Online Documentation: https://developer.android.com/reference/android/ support/constraint/motion/package-summary ★ Medium Articles: ★ Introduction to MotionLayout - Part I : http://bit.ly/2O4AmIz ★ Introduction to MotionLayout - Part II : http://bit.ly/2uPuWbw ★ Introduction to MotionLayout - Part III : http://bit.ly/2zRjCSj ★ https://github.com/googlesamples/android-ConstraintLayoutExamples