41.4 Custom Transitions and TransitionSets in Code
The examples outlined so far in this chapter have used the default transition settings in which resizing, fading and motion are animated using pre-configured behavior. These can be modified by creating custom transitions which are then referenced during the transition process. Animations are categorized as either change bounds (relating to changes in the position and size of a view) and fade (relating to the visibility or otherwise of a view).
A single Transition can be created as follows:
Transition myChangeBounds = new ChangeBounds();
This new transition can then be used when performing a transition:
TransitionManager.go(scene2, myChangeBounds);
Multiple transitions may be bundled together into a TransitionSet instance. The following code, for example, creates a new TransitionSet object consisting of both change bounds and fade transition effects:
TransitionSet myTransition = new TransitionSet();
myTransition...