private void loadAnimations(){
  mAnimationTimerAlpha=new AlphaAnimation(0.0f,1.0f);
  mAnimationTimerAlpha.setDuration(1000);
  mAnimationTimerAlpha.setRepeatMode(Animation.REVERSE);
  mAnimationTimerAlpha.setRepeatCount(Animation.INFINITE);
  mAnimationPlayAgainBackground=AnimationUtils.loadAnimation(getActivity(),R.anim.play_again_bkgrd_anim);
  mAnimationPlayAgainBackground.setFillAfter(true);
  mAnimationPlayAgainBackground.setAnimationListener(this);
  mAnimationCardCover=AnimationUtils.loadAnimation(getActivity(),R.anim.card_answer_flash);
  mAnimationCardCover.setFillAfter(true);
  mAnimationPlayAgainMain=AnimationUtils.loadAnimation(getActivity(),R.anim.play_again_main_anim);
  mAnimationPlayAgainMain.setFillAfter(true);
  mAnimationPlayAgainMain.setAnimationListener(this);
  mAnimationSetSnowman=new AnimationSet(true);
  mAnimationSnowman=new TranslateAnimation(150,0,150,0);
  mAnimationSnowman.setDuration(1000);
  mAnimationSetSnowman.addAnimation(mAnimationSnowman);
  mAnimationSnowmanBack=new TranslateAnimation(0,150,0,150);
  mAnimationSnowmanBack.setDuration(1000);
  mAnimationSnowmanBack.setStartOffset(1500);
  mAnimationSnowmanBack.setAnimationListener(this);
  mAnimationSetSnowman.addAnimation(mAnimationSnowmanBack);
  mAnimationSetSnowman.setAnimationListener(this);
  mAnimationRightPaneSlideOut=AnimationUtils.loadAnimation(getActivity(),android.R.anim.slide_out_right);
  mAnimationRightPaneSlideOut.setFillAfter(true);
  mAnimationLeftPaneSlideOut=AnimationUtils.loadAnimation(getActivity(),R.anim.left_pane_slide_out);
  mAnimationLeftPaneSlideOut.setFillAfter(true);
  mAnimationLeftPaneSlideIn=AnimationUtils.loadAnimation(getActivity(),android.R.anim.slide_in_left);
  mAnimationLeftPaneSlideIn.setFillAfter(true);
  mAnimationRightPaneSlideIn=AnimationUtils.loadAnimation(getActivity(),R.anim.right_pane_slide_in);
  mAnimationRightPaneSlideIn.setFillAfter(true);
  mAnimationScaleLevelDown=AnimationUtils.loadAnimation(getActivity(),R.anim.scale_level_anim_down);
  mAnimationScaleLevelDown.setAnimationListener(this);
  mAnimationLevelFadeOut=AnimationUtils.loadAnimation(getActivity(),R.anim.level_fade_out_anim);
  mAnimationLevelFadeOut.setAnimationListener(this);
  mAnimationLevelScaleUp=AnimationUtils.loadAnimation(getActivity(),R.anim.scale_up_level_anim);
  mAnimationLevelScaleUp.setAnimationListener(this);
  mAnimationRightPaneSlideOut.setAnimationListener(this);
  mAnimationLeftPaneSlideOut.setAnimationListener(this);
}

private void loadAnimations ( ) { mAnimationTimerAlpha = new AlphaAnimation ( 0.0f , 1.0f ) ; mAnimationTimerAlpha . setDuration ( 1000 ) ; mAnimationTimerAlpha . setRepeatMode ( Animation . REVERSE ) ; mAnimationTimerAlpha . setRepeatCount ( Animation . INFINITE ) ; mAnimationPlayAgainBackground = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . play_again_bkgrd_anim ) ; mAnimationPlayAgainBackground . setFillAfter ( true ) ; mAnimationPlayAgainBackground . setAnimationListener ( this ) ; mAnimationCardCover = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . card_answer_flash ) ; mAnimationCardCover . setFillAfter ( true ) ; mAnimationPlayAgainMain = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . play_again_main_anim ) ; mAnimationPlayAgainMain . setFillAfter ( true ) ; mAnimationPlayAgainMain . setAnimationListener ( this ) ; mAnimationSetSnowman = new AnimationSet ( true ) ; mAnimationSnowman = new TranslateAnimation ( 150 , 0 , 150 , 0 ) ; mAnimationSnowman . setDuration ( 1000 ) ; mAnimationSetSnowman . addAnimation ( mAnimationSnowman ) ; mAnimationSnowmanBack = new TranslateAnimation ( 0 , 150 , 0 , 150 ) ; mAnimationSnowmanBack . setDuration ( 1000 ) ; mAnimationSnowmanBack . setStartOffset ( 1500 ) ; mAnimationSnowmanBack . setAnimationListener ( this ) ; mAnimationSetSnowman . addAnimation ( mAnimationSnowmanBack ) ; mAnimationSetSnowman . setAnimationListener ( this ) ; mAnimationRightPaneSlideOut = AnimationUtils . loadAnimation ( getActivity ( ) , android . R . anim . slide_out_right ) ; mAnimationRightPaneSlideOut . setFillAfter ( true ) ; mAnimationLeftPaneSlideOut = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . left_pane_slide_out ) ; mAnimationLeftPaneSlideOut . setFillAfter ( true ) ; mAnimationLeftPaneSlideIn = AnimationUtils . loadAnimation ( getActivity ( ) , android . R . anim . slide_in_left ) ; mAnimationLeftPaneSlideIn . setFillAfter ( true ) ; mAnimationRightPaneSlideIn = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . right_pane_slide_in ) ; mAnimationRightPaneSlideIn . setFillAfter ( true ) ; mAnimationScaleLevelDown = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . scale_level_anim_down ) ; mAnimationScaleLevelDown . setAnimationListener ( this ) ; mAnimationLevelFadeOut = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . level_fade_out_anim ) ; mAnimationLevelFadeOut . setAnimationListener ( this ) ; mAnimationLevelScaleUp = AnimationUtils . loadAnimation ( getActivity ( ) , R . anim . scale_up_level_anim ) ; mAnimationLevelScaleUp . setAnimationListener ( this ) ; mAnimationRightPaneSlideOut . setAnimationListener ( this ) ; mAnimationLeftPaneSlideOut . setAnimationListener ( this ) ; }
load and initialise all animations required for the game .
