Code example for BounceInterpolator

0
		setContentView(myView);
 
		/* Setup Animator (NOTE: We are actually object of our custom class!) */ 
		ObjectAnimator a = ObjectAnimator.ofFloat(o, "prop", -250, 250);
		a.setDuration(10000);
		a.setInterpolator(new BounceInterpolator());
 
		a.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
        	/* Listen to the update event */ 
			@Override 
			public void onAnimationUpdate(ValueAnimator va) {
				myView.invalidate(); // Redraw!
			} 
		}); 
 
		a.start();
	} 
 
	/* Our custom view which will draw the drawable */ 
	private class MyView extends View {