android.support.annotation.TransitionRes Java Examples

The following examples show how to use android.support.annotation.TransitionRes. 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 File: SearchActivity.java    From android-proguards with 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 File: NavigationTransitionResourceExecutor.java    From scene with 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 File: SearchActivity.java    From Melophile with 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);
}