Skip to content

Instantly share code, notes, and snippets.

@LPirro
Last active May 1, 2018 13:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LPirro/931180171b01fc481bc770f100400fc3 to your computer and use it in GitHub Desktop.
Save LPirro/931180171b01fc481bc770f100400fc3 to your computer and use it in GitHub Desktop.
Simple animation example using ConstraintLayout and ConstraintSet
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