package app.iamin.iamin.util;

import android.support.v4.view.ViewCompat;
import android.view.View;
import android.view.animation.OvershootInterpolator;

/**
 * Created by Markus on 03.11.15.
 */
public class AnimUtils {

    public static void playPopAnim(View v, int startDelay, int duration) {
        if (v != null) {
            ViewCompat.setAlpha(v, 0f);
            ViewCompat.setScaleX(v, 0f);
            ViewCompat.setScaleY(v, 0f);

            ViewCompat.animate(v)
                    .alpha(1f)
                    .scaleX(1f)
                    .scaleY(1f)
                    .setStartDelay(startDelay)
                    .setDuration(duration)
                    .setInterpolator(new OvershootInterpolator());
        }
    }
}

@@ -245,16 +245,18 @@
  playPop
+In
 Anim(Vie
@@ -741,11 +741,417 @@
  %7D%0A    %7D
+%0A%0A    public static void playPopOutAnim(View v, int startDelay, int duration) %7B%0A        if (v != null) %7B%0A            ViewCompat.animate(v)%0A                    .alpha(0f)%0A                    .scaleX(0f)%0A                    .scaleY(0f)%0A                    .setStartDelay(startDelay)%0A                    .setDuration(duration)%0A                    .setInterpolator(new OvershootInterpolator());%0A        %7D%0A    %7D
 %0A%7D%0A

Add outro animation