Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.TranslateAnimation; public class Main { public static void SetImageSlide(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); } }