Search in sources :

Example 1 with FabTransform

use of com.bluelinelabs.conductor.demo.changehandler.transitions.FabTransform in project Conductor by bluelinelabs.

the class FabToDialogTransitionChangeHandler method getTransition.

@Override
@NonNull
protected Transition getTransition(@NonNull final ViewGroup container, @Nullable final View from, @Nullable final View to, boolean isPush) {
    Transition backgroundFade = new Fade();
    backgroundFade.addTarget(R.id.dialog_background);
    Transition fabTransform = new FabTransform(ContextCompat.getColor(container.getContext(), R.color.colorAccent), R.drawable.ic_github_face);
    TransitionSet set = new TransitionSet();
    set.addTransition(backgroundFade);
    set.addTransition(fabTransform);
    return set;
}
Also used : TransitionSet(android.transition.TransitionSet) Transition(android.transition.Transition) Fade(android.transition.Fade) FabTransform(com.bluelinelabs.conductor.demo.changehandler.transitions.FabTransform) NonNull(android.support.annotation.NonNull)

Aggregations

NonNull (android.support.annotation.NonNull)1 Fade (android.transition.Fade)1 Transition (android.transition.Transition)1 TransitionSet (android.transition.TransitionSet)1 FabTransform (com.bluelinelabs.conductor.demo.changehandler.transitions.FabTransform)1