Back to project page Fragment-NetEase.
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.
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); } }