@@ -0,0 +1,810 @@
+package com.kaichunlin.transition.animation;%0A%0A/**%0A * Auto play the animation in reverse right after the animation ended, currently only works when the initial animation is not set%0A * with %7B@link Animation#setReverseAnimation(boolean)%7D as true.%0A *%0A * Created by Kai on 2015/12/18.%0A */%0Apublic class AutoReverseAnimationListener implements AnimationListener %7B%0A    @Override%0A    public void onAnimationStart(Animation animation) %7B%0A    %7D%0A%0A    @Override%0A    public void onAnimationEnd(Animation animation) %7B%0A        if (!animation.isReverseAnimation()) %7B%0A            animation.setReverseAnimation(true);%0A            animation.startAnimation();%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onAnimationCancel(Animation animation) %7B%0A    %7D%0A%0A    @Override%0A    public void onAnimationReset(Animation animation) %7B%0A    %7D%0A%7D

Add AutoReverseAnimationListener