For api > 10 u can use it as.
ObjectAnimator animY = ObjectAnimator.ofFloat(imgView, "translationY", -500f, 0f);
animY.setDuration(1500);//1.5sec
animY.setInterpolator(new BounceInterpolator());
animY.setRepeatCount(0);
animY.start()
For api < 11 u can use it as:
TranslateAnimation animation = new TranslateAnimation(
Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, -3.0f, Animation.RELATIVE_TO_SELF, 0.0f
);
animation.setDuration(1500);
animation.setInterpolator(new BounceInterpolator());
imgView.startAnimation(animation);