41.8 Using the beginDelayedTransition Method
Perhaps the simplest form of Transition based user interface animation involves the use of the beginDelayedTransition() method of the TransitionManager class. This method is passed a reference to the root view of the viewgroup representing the scene for which animation is required. Subsequent changes to the views within that sub view will then be animated using the default transition settings:
myLayout = findViewById(R.id.myLayout);
TransitionManager.beginDelayedTransition(myLayout);
// Make changes to the scene here
If behavior other than the default animation behavior is required, simply pass a suitably configured Transition or TransitionSet instance through to the method call:
TransitionManager.beginDelayedTransition(myLayout, myTransition);