package

androidx.transition

Overview

AndroidX Transition Library provides Transition API back to API level 14.

Transition API allows you to animate various kinds of layout changes automatically. For example, you can present a change of visibility as fade in / out animation like below:

     TextView message = findViewById(R.id.message);
     ViewGroup container = findViewById(R.id.container);
     Fade fade = new Fade();

     TransitionManager.beginDelayedTransition(container, fade);
     message.setVisibility(View.INVISIBLE);
 

Interfaces

Transition.TransitionListenerA transition listener receives notifications from a transition.
TransitionSeekControllerReturned from TransitionManager.controlDelayedTransition(ViewGroup, Transition) to allow manually controlling the animations within a Transition using TransitionSeekController.setCurrentPlayTimeMillis(long).

Classes

ArcMotionA PathMotion that generates a curved path along an arc on an imaginary circle containing the two points.
AutoTransitionUtility class for creating a default transition that automatically fades, moves, and resizes views during a scene change.
ChangeBoundsThis transition captures the layout bounds of target views before and after the scene change and animates those changes during the transition.
ChangeClipBoundsChangeClipBounds captures the android.view.View before and after the scene change and animates those changes during the transition.
ChangeImageTransformThis Transition captures an ImageView's matrix before and after the scene change and animates it during the transition.
ChangeScrollThis transition captures the scroll properties of targets before and after the scene change and animates any changes.
ChangeTransformThis Transition captures scale and rotation for Views before and after the scene change and animates those changes during the transition.
CircularPropagationA propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists.
ExplodeThis transition tracks changes to the visibility of target views in the start and end scenes and moves views in or out from the edges of the scene.
FadeThis 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.
FragmentTransitionSupport
PathMotionThis base class can be extended to provide motion along a Path to Transitions.
PatternPathMotionA PathMotion that takes a Path pattern and applies it to the separation between two points.
SceneA scene represents the collection of values that various properties in the View hierarchy will have when the scene is applied.
SidePropagationA TransitionPropagation that propagates based on the distance to the side and, orthogonally, the distance to epicenter.
SlideThis transition tracks changes to the visibility of target views in the start and end scenes and moves views in or out from one of the edges of the scene.
TransitionA Transition holds information about animations that will be run on its targets during a scene change.
Transition.EpicenterCallbackClass to get the epicenter of Transition.
TransitionInflaterThis class inflates scenes and transitions from resource files.
TransitionListenerAdapterThis adapter class provides empty implementations of the methods from Transition.TransitionListener.
TransitionManagerThis class manages the set of transitions that fire when there is a change of Scene.
TransitionPropagationExtend TransitionPropagation to customize start delays for Animators created in Transition.createAnimator(ViewGroup, TransitionValues, TransitionValues).
TransitionSetA TransitionSet is a parent of child transitions (including other TransitionSets).
TransitionValuesData structure which holds cached values for the transition.
VisibilityThis transition tracks changes to the visibility of target views in the start and end scenes.
VisibilityPropagationBase class for TransitionPropagations that care about View Visibility and the center position of the View.

Annotation Types

Slide.GravityFlag
Transition.MatchOrder
Visibility.Mode