Android Open Source - Fragment-NetEase Move Bg






From Project

Back to project page Fragment-NetEase.

License

The source code is released under:

Apache License

If you think the Android project Fragment-NetEase listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.and.netease.utils;
//ww w.  j  a v a2  s. c om
import android.view.View;
import android.view.animation.TranslateAnimation;

public class MoveBg {

    /**
     * move front to background
     *
     * @param v      the view to be moved
     * @param startX start x position
     * @param toX    to
     * @param startY
     * @param toY
     */
    public static void moveFrontBg(View v, int startX, int toX, int startY, int toY) {
        TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY);
        anim.setDuration(200);
        anim.setFillAfter(true);
        v.startAnimation(anim);
    }
}




Java Source Code List

com.and.netease.utils.MoveBg.java
com.gracker.tabfragment.MainActivity.java
fragment_content.Contentfragment.java
fragment_content.TopBarFragment.java