TranslateAnimation animation = new TranslateAnimation(0, -5, 0, 0);
animation.setInterpolator(new OvershootInterpolator());
animation.setDuration(100);
animation.setRepeatCount(-1);
animation.setRepeatMode(Animation.REVERSE);
view.startAnimation(animation);