Android examples for android.animation:ObjectAnimator
translation Right ObjectAnimator
//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); }//from ww w . ja v a 2s . co m }