Code example for AnimatorSet

Methods: addListener, playTogether, setInterpolator, start

0
		ObjectAnimator animation6 = ObjectAnimator.ofFloat(mWeatherTxtHolder,
				"alpha", 0, 1); 
		animation6.setDuration(300);
		animation6.setStartDelay(300);
 
		AnimatorSet set = new AnimatorSet();
		set.playTogether(animation1, animation2, animation3, animation4,
				animation5,animation6);
		set.setInterpolator(new AccelerateDecelerateInterpolator());
		set.addListener(new AnimatorListener() {
 
			@Override 
			public void onAnimationStart(Animator animation) {
				// TODO Auto-generated method stub 
				animationLock = true;
			} 
 
			@Override 
			public void onAnimationRepeat(Animator animation) {
				// TODO Auto-generated method stub 
 
			} 
 
			@Override 
			public void onAnimationEnd(Animator animation) {
				// TODO Auto-generated method stub 
				animationLock = false;
			} 
 
			@Override 
			public void onAnimationCancel(Animator animation) {
				// TODO Auto-generated method stub 
				animationLock = false;
			} 
		}); 
		 
		set.start();
	} 
 
	private void fadeout() {