title: Android fragment transition - avoiding GC during animation
body: <p>I'm using a standard slide animation defined in XML to animate fragment transitions.  Most of these fragments contain ListViews (But not always). 90% of the time, the animation is smooth and flows nicely. Every once in a while, there's a stutter. Checking logcat, there's always a GC happening when a stutter occurs:</p>
  
  <pre><code>D/dalvikvm(26619): GC_FOR_ALLOC freed 300K, 9% free 13820K/15044K, paused 40ms, total 40ms
  </code></pre>
  
  <p>(It seems weird that it felt like it needed to GC just for 300 KB)</p>
  
  <p>Is there anyway to avoid that GC during an animation (Before or after is fine). Calling System.gc() before the animation is not a great option, especially since there's no guarantee as to when that garbage collection will take place. Are there any other suggestions?</p>