@@ -0,0 +1,2069 @@
+package com.zulip.android.util;%0A%0Aimport android.animation.Animator;%0Aimport android.support.v4.view.animation.FastOutSlowInInterpolator;%0Aimport android.view.View;%0Aimport android.view.ViewPropertyAnimator;%0Aimport android.view.animation.Interpolator;%0A%0Apublic class AnimationHelper %7B%0A%0A    private static final Interpolator FAST_OUT_SLOW_IN_INTERPOLATOR = new FastOutSlowInInterpolator();%0A%0A    public static void showView(final View view, int duration) %7B%0A        ViewPropertyAnimator slideOutAnimator = view.animate()%0A                .translationX(view.getWidth())%0A                .setInterpolator(FAST_OUT_SLOW_IN_INTERPOLATOR)%0A                .setDuration(duration);%0A%0A        slideOutAnimator.setListener(new Animator.AnimatorListener() %7B%0A            @Override%0A            public void onAnimationStart(Animator animator) %7B%0A            %7D%0A%0A            @Override%0A            public void onAnimationEnd(Animator animator) %7B%0A                view.setVisibility(View.GONE);%0A            %7D%0A%0A            @Override%0A            public void onAnimationCancel(Animator animator) %7B%0A            %7D%0A%0A            @Override%0A            public void onAnimationRepeat(Animator animator) %7B%0A            %7D%0A        %7D);%0A        slideOutAnimator.start();%0A    %7D%0A%0A    public static void hideView(final View view, int duration) %7B%0A        ViewPropertyAnimator slideOutAnimator = view.animate()%0A                .translationX(0)%0A                .setInterpolator(FAST_OUT_SLOW_IN_INTERPOLATOR)%0A                .setDuration(duration);%0A%0A        slideOutAnimator.setListener(new Animator.AnimatorListener() %7B%0A            @Override%0A            public void onAnimationStart(Animator animator) %7B%0A                view.setVisibility(View.VISIBLE);%0A            %7D%0A%0A            @Override%0A            public void onAnimationEnd(Animator animator) %7B%0A%0A            %7D%0A%0A            @Override%0A            public void onAnimationCancel(Animator animator) %7B%0A%0A            %7D%0A%0A            @Override%0A            public void onAnimationRepeat(Animator animator) %7B%0A            %7D%0A        %7D);%0A        slideOutAnimator.start();%0A    %7D%0A%7D%0A

Implement Animation Helper class to have methods for animation