Code example for BounceInterpolator

0
 
		ObjectAnimator oa = ObjectAnimator.ofPropertyValuesHolder(m_tv, pvhX,
				pvhY);
		oa.setDuration(3000);
		// oa.setInterpolator(new AccelerateDecelerateInterpolator()); 
		oa.setInterpolator(new BounceInterpolator());
		oa.start();
	} 
 
	/* 
	 * 一个View的多个属性进行动画,3.1中引入,对多属性动画进行了优化 
	 */ 
	public void testViewPropertyAnimator(View v) {
		m_tv.setAlpha(1f);
		float h = m_tv.getHeight();
		float w = m_tv.getWidth();
		float x = m_tv.getX();
		float y = m_tv.getY();
 
		m_tv.setX(w);