ObjectAnimator oa=ObjectAnimator.ofFloat(iv,"translationX",0,10.0f,20.0f,30.0f);
oa.setDuration(4000);
oa.setRepeatCount(ObjectAnimator.INFINITE);
oa.setRepeatMode(ObjectAnimator.REVERSE);
oa.start();
ObjectAnimator oa=ObjectAnimator.ofFloat(iv,"translationX",0,10.0f,20.0f,30.0f);
oa.setDuration(4000);
oa.setRepeatCount(ObjectAnimator.INFINITE);
oa.setRepeatMode(ObjectAnimator.REVERSE);
oa.start();