TransitionInflater
class TransitionInflater
This class inflates scenes and transitions from resource files.
Summary
Public functions |
|
|---|---|
java-static TransitionInflater |
Obtains the TransitionInflater from the given context. |
Transition? |
inflateTransition(resource: Int)Loads a |
TransitionManager? |
inflateTransitionManager(resource: Int, sceneRoot: ViewGroup)Loads a |
Public functions
from
java-static fun from(context: Context): TransitionInflater
Obtains the TransitionInflater from the given context.
inflateTransition
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
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 |