Android Studio Sign in

TransitionInflater


class TransitionInflater


This class inflates scenes and transitions from resource files.

Summary

Public functions

java-static TransitionInflater
from(context: Context)

Obtains the TransitionInflater from the given context.

Transition?

Loads a Transition object from a resource

TransitionManager?
inflateTransitionManager(resource: Int, sceneRoot: ViewGroup)

Loads a TransitionManager object from a resource

Public functions

from

Added in 1.0.0
java-static fun from(context: Context): TransitionInflater

Obtains the TransitionInflater from the given context.

inflateTransition

Added in 1.0.0
fun inflateTransition(resource: Int): Transition?

Loads a Transition object from a resource

Parameters
resource: Int

The resource id of the transition to load

Returns
Transition?

The loaded Transition object

Throws
android.content.res.Resources.NotFoundException

when the transition cannot be loaded

inflateTransitionManager

Added in 1.0.0
fun inflateTransitionManager(resource: Int, sceneRoot: ViewGroup): TransitionManager?

Loads a TransitionManager object from a resource

Parameters
resource: Int

The resource id of the transition manager to load

sceneRoot: ViewGroup

The root of the hierarchy in which scene changes and transitions will take place.

Returns
TransitionManager?

The loaded TransitionManager object

Throws
android.content.res.Resources.NotFoundException

when the transition manager cannot be loaded

Morty Proxy This is a proxified and sanitized view of the page, visit original site.