title: Fragment - Wait until transaction animation is complete
body: <p>I am using a simple slide left, slide right custom animation when I perform FragmentTransaction.  My problem is, the fragment I'm loading with the transaction animation contains code in the onResume() to make a HTTP call which causes my "Please Wait" progress dialog to show.  It works, but I would like the move my code from onResume to another method in the Fragment that would not fire until the fragment is completely loaded.  In other words, when the animation is complete and it is completely slid into place.</p>
  
  <p>I use this to start the new fragment</p>
  
  <pre><code>FragmentManager manager = getSupportFragmentManager();
  FragmentTransaction ft = manager.beginTransaction();
  ft.setCustomAnimation(R.anim.slide_in_right, R.anim.slide_out_left);
  ft.replace(R.id.realtabcontent, new MyFragment());
  ft.commit();
  </code></pre>
  
  <p>and I want the method in MyNewFragment() to initialize after the animation is 100% complete</p>
  
  <p>Is that possible?</p>