androidmemoryanimated-gifanimationdrawable

AnimationDrawable xml vs dynamically


I was wondering, is there a difference memory-whise between defining an animationdrawable in xml and making the animationdrawable dynamically in your code?


Solution

  • Because there was no answer I could accept, here is what was said (and what's right).
    There is no difference between making an AnimationDrawable in xml or dynamically in code. Android's framework will dynamically create the AnimationDrawable in the background if you made it in xml.