@@ -0,0 +1,1235 @@
+package com.sinyuk.yuk.utils;%0A%0Aimport android.support.v4.view.animation.FastOutSlowInInterpolator;%0Aimport android.view.ViewPropertyAnimator;%0A%0Aimport fr.castorflex.android.smoothprogressbar.SmoothProgressBar;%0A%0A/**%0A * Created by Sinyuk on 16/8/15.%0A */%0Apublic class BlackMagics %7B%0A    /*%0A     * %E8%BF%9B%E5%BA%A6%E6%9D%A1%E4%B8%8A%E7%A7%BB%0A     * @param v%0A     * @param withLayer%0A     */%0A    public static ViewPropertyAnimator scrollUp(SmoothProgressBar progressBar) %7B%0A        final int offset = progressBar.getHeight();%0A        progressBar.setTranslationY(offset);%0A        progressBar.setAlpha(0.01f);%0A        return progressBar.animate()%0A                .translationY(0)%0A                .alpha(1)%0A                .setDuration(600)%0A                .setInterpolator(new FastOutSlowInInterpolator())%0A                .withLayer();%0A    %7D%0A%0A    /*%0A    * %E8%BF%9B%E5%BA%A6%E6%9D%A1%E4%B8%8B%E7%A7%BB%0A    * @param v%0A    * @param withLayer%0A    */%0A    public static ViewPropertyAnimator scrollDown(SmoothProgressBar progressBar) %7B%0A        final int offset = progressBar.getHeight();%0A        return progressBar.animate()%0A                .translationY(offset)%0A                .alpha(0.01f)%0A                .setDuration(600)%0A                .setInterpolator(new FastOutSlowInInterpolator())%0A                .withLayer();%0A    %7D%0A%7D%0A

Move some code on animations outside