Code example for ValueAnimator

Methods: getCurrentPlayTime

0
	} 
	 
	private AnimatorUpdateListener animatorUpdateListener = new AnimatorUpdateListener() {
		@Override 
		public void onAnimationUpdate(ValueAnimator animation) { 
			setLayoutHeight( (int) (startHeight + heightDifference * animation.getCurrentPlayTime() / durationTime) ); 
		} 
	}; 
	 
	private AnimatorListener animatorListener = new AnimatorListener() {
		@Override 
		public void onAnimationStart(Animator animation) { 
			if (userAnimatorListener != null) 
				userAnimatorListener.onAnimationStart(animation); 
		} 
 
		@Override 
		public void onAnimationRepeat(Animator animation) { 
			if (userAnimatorListener != null) 
				userAnimatorListener.onAnimationRepeat(animation); 
		}