package com.art.screenswitchersample;

import com.art.alligator.AnimationProvider;
import com.art.alligator.Screen;
import com.art.alligator.TransitionAnimation;
import com.art.alligator.TransitionType;

/**
 * Date: 28.02.2017
 * Time: 21:01
 *
 * @author Artur Artikov
 */

public class SampleAnimationProvider implements AnimationProvider {
	@Override
	public TransitionAnimation getAnimation(TransitionType transitionType, boolean isActivity, Class<? extends Screen> screenClassFrom, Class<? extends Screen> screenClassTo) {
		return new TransitionAnimation(R.anim.stay, R.anim.fade_out);
	}
}

@@ -522,16 +522,86 @@
 ssTo) %7B%0A
+%09%09if(isActivity) %7B%0A%09%09%09return TransitionAnimation.DEFAULT;%0A%09%09%7D else %7B%0A%09
 %09%09return
@@ -656,13 +656,17 @@
 e_out);%0A
+%09%09%7D%0A
 %09%7D%0A%7D%0A

Change animation in sample