Search in sources :

Example 6 with ChangeImageTransform

use of android.transition.ChangeImageTransform in project native-navigation by airbnb.

the class AutoSharedElementCallback method getDefaultTransition.

@TargetApi(TARGET_API)
private Transition getDefaultTransition() {
    TransitionSet set = new TransitionSet();
    set.addTransition(new ChangeBounds());
    set.addTransition(new Fade());
    set.addTransition(new ChangeImageTransform());
    set.setInterpolator(new FastOutSlowInInterpolator());
    return set;
}
Also used : TransitionSet(android.transition.TransitionSet) ChangeBounds(android.transition.ChangeBounds) FastOutSlowInInterpolator(android.support.v4.view.animation.FastOutSlowInInterpolator) Fade(android.transition.Fade) ChangeImageTransform(android.transition.ChangeImageTransform) TargetApi(android.annotation.TargetApi)

Example 7 with ChangeImageTransform

use of android.transition.ChangeImageTransform in project TicktockMusic by Lauzy.

the class FragmentTransition method init.

private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).addTransition(new ChangeTransform()).addTransition(new ChangeImageTransform());
}
Also used : ChangeTransform(android.transition.ChangeTransform) ChangeBounds(android.transition.ChangeBounds) ChangeImageTransform(android.transition.ChangeImageTransform)

Aggregations

ChangeBounds (android.transition.ChangeBounds)7 ChangeImageTransform (android.transition.ChangeImageTransform)7 ChangeTransform (android.transition.ChangeTransform)6 TargetApi (android.annotation.TargetApi)1 FastOutSlowInInterpolator (android.support.v4.view.animation.FastOutSlowInInterpolator)1 Fade (android.transition.Fade)1 TransitionSet (android.transition.TransitionSet)1