to top
Android APIs
public class

TransitionInflater

extends Object
java.lang.Object
   ↳ android.transition.TransitionInflater

Class Overview

This class inflates scenes and transitions from resource files. Information on XML resource descriptions for transitions can be found for Transition, TransitionSet, TransitionTarget, Fade, and TransitionManager.

Summary

Public Methods
static TransitionInflater from(Context context)
Obtains the TransitionInflater from the given context.
Transition inflateTransition(int resource)
Loads a Transition object from a resource
TransitionManager inflateTransitionManager(int resource, ViewGroup sceneRoot)
Loads a TransitionManager object from a resource
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static TransitionInflater from (Context context)

Added in API level 19

Obtains the TransitionInflater from the given context.

public Transition inflateTransition (int resource)

Added in API level 19

Loads a Transition object from a resource

Parameters
resource The resource id of the transition to load
Returns
  • The loaded Transition object
Throws
Resources.NotFoundException when the transition cannot be loaded

public TransitionManager inflateTransitionManager (int resource, ViewGroup sceneRoot)

Added in API level 19

Loads a TransitionManager object from a resource

Parameters
resource The resource id of the transition manager to load
Returns
  • The loaded TransitionManager object
Throws
Resources.NotFoundException when the transition manager cannot be loaded