Most visited

Recently visited

Added in API level 19

TransitionInflater

public class TransitionInflater
extends Object

java.lang.Object
   ↳ android.transition.TransitionInflater


该课程从资源文件中扩展场景和转换。 关于转换XML资源描述的信息可以发现TransitionTransitionSetTransitionTargetFade ,并TransitionManager

Summary

Public methods

static TransitionInflater from(Context context)

从给定的上下文中获取TransitionInflater。

Transition inflateTransition(int resource)

从资源加载 Transition对象

TransitionManager inflateTransitionManager(int resource, ViewGroup sceneRoot)

从资源加载 TransitionManager对象

Inherited methods

From class java.lang.Object

Public methods

from

Added in API level 19
TransitionInflater from (Context context)

从给定的上下文中获取TransitionInflater。

Parameters
context Context
Returns
TransitionInflater

inflateTransition

Added in API level 19
Transition inflateTransition (int resource)

从资源加载 Transition对象

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

inflateTransitionManager

Added in API level 19
TransitionManager inflateTransitionManager (int resource, 
                ViewGroup sceneRoot)

从资源加载 TransitionManager对象

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

Hooray!