Code example for ValueAnimator

Methods: getAnimatedValue

0
		progressBarAnimator.reverse();
		progressBarAnimator.addUpdateListener(new AnimatorUpdateListener() {
 
			@Override 
			public void onAnimationUpdate(final ValueAnimator animation) {
				progressBar.setProgress((Float) animation.getAnimatedValue());
			} 
		}); 
		progressBar.setMarkerProgress(progress);
		progressBarAnimator.start();
	} 
 
	/* (non-Javadoc) 
	 * @see android.app.Activity#onCreateOptionsMenu(android.view.Menu) 
	 */ 
	@Override 
	public boolean onCreateOptionsMenu(final Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(R.menu.circular_progress_bar_sample, menu);
		return true; 
	}