to top
Android APIs
Added in API level 19


The classes in this package enable "scenes & transitions" functionality for view hiearchies.

A Scene is an encapsulation of the state of a view hierarchy, including the views in that hierarchy and the various values (layout-related and otherwise) that those views have. A scene can be defined by a layout hierarchy directly or by code which sets up the scene dynamically as it is entered.

A Transition is a mechanism to automatically animate changes that occur when a new scene is entered. Some transition capabilities are automatic. That is, entering a scene may cause animations to run which fade out views that go away, changeBounds and resize existing views that change, and fade in views that become visible. There are additional transitions that can animate other attributes, such as color changes, and which can optionally be specified to take place during particular scene changes. Finally, developers can define their own Transition subclasses which monitor particular property changes and which run custom animations when those properties change values.

TransitionManager is used to specify custom transitions for particular scene changes, and to cause scene changes with specific transitions to take place.


Transition.TransitionListener A transition listener receives notifications from a transition. 


AutoTransition Utility class for creating a default transition that automatically fades, moves, and resizes views during a scene change. 
ChangeBounds This transition captures the layout bounds of target views before and after the scene change and animates those changes during the transition. 
Fade This transition tracks changes to the visibility of target views in the start and end scenes and fades views in or out when they become visible or non-visible. 
Scene A scene represents the collection of values that various properties in the View hierarchy will have when the scene is applied. 
Transition A Transition holds information about animations that will be run on its targets during a scene change. 
TransitionInflater This class inflates scenes and transitions from resource files. 
TransitionManager This class manages the set of transitions that fire when there is a change of Scene
TransitionSet A TransitionSet is a parent of child transitions (including other TransitionSets). 
TransitionValues Data structure which holds cached values for the transition. 
Visibility This transition tracks changes to the visibility of target views in the start and end scenes.