Last active
May 1, 2018 13:13
-
-
Save LPirro/931180171b01fc481bc770f100400fc3 to your computer and use it in GitHub Desktop.
Simple animation example using ConstraintLayout and ConstraintSet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun showComponents(){ | |
val constraintSet = ConstraintSet() | |
constraintSet.clone(this, R.layout.circuit_detail) | |
val transition = ChangeBounds() | |
transition.interpolator = AnticipateOvershootInterpolator(1.0f) | |
transition.duration = 1200 | |
TransitionManager.beginDelayedTransition(constraint, transition) | |
constraintSet.applyTo(constraint) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment