/**
* Inflates a desired TransitionManager from the specified <var>resource</var>.
*
* @param context Context used for inflation process.
* @param resource Resource id of the desired transition manager to inflate.
* @param sceneRoot Root of the scene for which to inflate transition manager.
* @return Inflated transition manager or {@code null} if the current API level does not support
* transitions.
* @see TransitionInflater#inflateTransitionManager(int, ViewGroup)
* @see #inflateTransition(Context, int)
*/
@Nullable
@SuppressLint("NewApi")
public static TransitionManager inflateTransitionManager(@NonNull final Context context, @TransitionRes final int resource, @NonNull final ViewGroup sceneRoot) {
return FragmentPolicies.TRANSITIONS_SUPPORTED ? TransitionInflater.from(context).inflateTransitionManager(resource, sceneRoot) : null;
}
FragmentUtils.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:android_fragments
作者:
评论列表
文章目录