title: Animation listerener not called after fragment change
body: <p><br>
  I have a main activitiy containing a fragment. This fragment can be changed by selecting a menu item. <br>
  When on the first fragment, clicking the menu button. The side bar is shown. After selecting a menu item, the fragment changes. <br>
  When you click the menu item on this fragment, the animation listeren is not called instantly. You first have to scroll in a direction before it calles the script. 
  The menu item is in the main activity, so it should mind if there would be a different Fragment, right?</p>
  
  <pre><code>    slideIn = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.slide_in);
  slideIn.setAnimationListener(new AnimationListener() {
  
  
  @Override
          public void onAnimationStart(Animation animation) {
              isAnimating = true;
          }
  
          @Override
          public void onAnimationEnd(Animation animation) {
              animation = new TranslateAnimation(0.0f, 0.0f, 0.0f, 0.0f);
              animation.setDuration((long) 0.1f);
              menuView.startAnimation(animation);
              ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) menuView.getLayoutParams();
              p.setMargins(0, 0, 0, 0);
              menuView.setLayoutParams(p);
              isAnimating = false;
          }
  
          @Override
          public void onAnimationRepeat(Animation animation) {
  
          }
      });
  
  menuView.startAnimation(slideIn);
  </code></pre>
  
  <p>And this would be the fragment change:</p>
  
  <pre><code>trans = getSupportFragmentManager().beginTransaction();
                              trans.remove((Fragment) Globals.getInstance().getCurrentFragment());
                              trans.add(R.id.realtabcontent, fragmentName, "tag");
                              trans.commit();
  </code></pre>
  
  <p>So on the different fragment, the animation is started as soon as I scroll. The above code is all in the Main Activity</p>