Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; public class Main { private static float x = 0; private static long duration = 1500; public static void moveLeft(Object v, float end) { x -= end; ObjectAnimator.ofFloat(v, "translationX", x).setDuration(duration).start(); } }