Java Examples

The following examples show how to use You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: android-proguards   Author: yongjhih   File:    License: Apache License 2.0 5 votes vote down vote up
Transition getTransition(@TransitionRes int transitionId) {
    Transition transition = transitions.get(transitionId);
    if (transition == null) {
        transition = TransitionInflater.from(this).inflateTransition(transitionId);
        transitions.put(transitionId, transition);
    return transition;
Example #2
Source Project: scene   Author: bytedance   File:    License: Apache License 2.0 4 votes vote down vote up
public NavigationTransitionResourceExecutor(Activity activity,
                                            @TransitionRes int shareResId,
                                            @TransitionRes int otherResId) {
    mSharedTransition = TransitionInflater.from(activity).inflateTransition(shareResId);
    mOtherTransition = TransitionInflater.from(activity).inflateTransition(otherResId);
Example #3
Source Project: Melophile   Author: vpaliy   File:    License: Apache License 2.0 4 votes vote down vote up
private Transition getTransition(@TransitionRes int transitionId) {
  TransitionInflater inflater = TransitionInflater.from(this);
  return inflater.inflateTransition(transitionId);