BaseFragment.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:android_fragments 作者:
/**
 * Inflates a desired Transition from the specified <var>resource</var>.
 *
 * @param resource Resource id of the desired transition to inflate.
 * @return Inflated transition or {@code null} if the current API level does not support transitions
 * or this fragment is not attached to its parent context.
 * @see TransitionInflater#inflateTransition(int)
 */
@Nullable
protected Transition inflateTransition(@TransitionRes int resource) {
    final Activity activity = getActivity();
    return activity != null && FragmentPolicies.TRANSITIONS_SUPPORTED ? TransitionInflater.from(activity).inflateTransition(resource) : null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号