Skip to content

Instantly share code, notes, and snippets.

@buddhasaikia
Last active May 29, 2018 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buddhasaikia/2cb827c82168cb9a70de7d84cc2bb59d to your computer and use it in GitHub Desktop.
Save buddhasaikia/2cb827c82168cb9a70de7d84cc2bb59d to your computer and use it in GitHub Desktop.
ConstraintLayout Animation
ConstraintSet constraintSet = new ConstraintSet();
constraintSet.clone(getActivity(), R.layout.fragment_search_constraintset1);
ChangeBounds transition = new ChangeBounds();
transition.setInterpolator(new AnticipateOvershootInterpolator(1.0f));
transition.setDuration(800);
ConstraintLayout constraint = view.findViewById(R.id.constraint);
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