Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.TranslateAnimation; public class Main { public static void SetImageSlide(View view, int startX, int toX, int startY, int toY) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(100); anim.setFillAfter(true); view.startAnimation(anim); } }