Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/transition/TransitionInflater#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/transition/TransitionInflater#inhmethods)

# TransitionInflater

*** ** * ** ***

` public class TransitionInflater `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.transition.TransitionInflater |

<br />

*** ** * ** ***

This class inflates scenes and transitions from resource files. Information on XML resource descriptions for transitions can be found for `https://developer.android.com/reference/android/R.styleable#Transition`, `https://developer.android.com/reference/android/R.styleable#TransitionSet`, `https://developer.android.com/reference/android/R.styleable#TransitionTarget`, `https://developer.android.com/reference/android/R.styleable#Fade`, and `https://developer.android.com/reference/android/R.styleable#TransitionManager`.

## Summary

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/transition/TransitionInflater` | ` https://developer.android.com/reference/android/transition/TransitionInflater#from(android.content.Context)(https://developer.android.com/reference/android/content/Context context) ` Obtains the TransitionInflater from the given context. |
| ` https://developer.android.com/reference/android/transition/Transition` | ` https://developer.android.com/reference/android/transition/TransitionInflater#inflateTransition(int)(int resource) ` Loads a `https://developer.android.com/reference/android/transition/Transition` object from a resource |
| ` https://developer.android.com/reference/android/transition/TransitionManager` | ` https://developer.android.com/reference/android/transition/TransitionInflater#inflateTransitionManager(int,%20android.view.ViewGroup)(int resource, https://developer.android.com/reference/android/view/ViewGroup sceneRoot) ` Loads a `https://developer.android.com/reference/android/transition/TransitionManager` object from a resource |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public methods

### from

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static TransitionInflater from (Context context)
```

Obtains the TransitionInflater from the given context.

<br />

| Parameters ||
|---|---|
| `context` | `Context` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/transition/TransitionInflater` | <br /> |

### inflateTransition

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Transition inflateTransition (int resource)
```

Loads a `https://developer.android.com/reference/android/transition/Transition` object from a resource

<br />

| Parameters ||
|---|---|
| `resource` | `int`: The resource id of the transition to load <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/transition/Transition` | The loaded Transition object <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/content/res/Resources.NotFoundException` | when the transition cannot be loaded |

### inflateTransitionManager

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TransitionManager inflateTransitionManager (int resource, 
                ViewGroup sceneRoot)
```

Loads a `https://developer.android.com/reference/android/transition/TransitionManager` object from a resource

<br />

| Parameters ||
|---|---|
| `resource` | `int`: The resource id of the transition manager to load <br /> |
| `sceneRoot` | `ViewGroup` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/transition/TransitionManager` | The loaded TransitionManager object <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/content/res/Resources.NotFoundException` | when the transition manager cannot be loaded |