Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static ObjectAnimator translationRight(View v, float x) { return ObjectAnimator.ofFloat(v, "translationX", 0, x); } }