Code example for Animator

Methods: addListener

0
		// 自定义的Disappearing动画:横向旋转(以X为轴翻转)消失 
		// Removing 
		customDisappearingAnim = ObjectAnimator.ofFloat(null, "rotationX", 0f,
				90f).setDuration(
				transition.getDuration(LayoutTransition.DISAPPEARING));
		customDisappearingAnim.addListener(new AnimatorListenerAdapter() {
			public void onAnimationEnd(Animator anim) {
				View view = (View) ((ObjectAnimator) anim).getTarget();
				view.setRotationX(0f);
			} 
		}); 
 
	} 
}