Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJavier Pacheco
382 PointsHow animations work
I understand that we add one image per frame, however, I don't understand how they pass from one to another. I pictured it as a for.
1 Answer
Randy Perez
5,668 PointsYou have and XML that defines the images path, their order and how long each one of the will remain visible. In your activity what you actually do is "Calling that XML", the XML already know which image goes and the rest of the sequence.
It's similar in concept to a for but in the end the XML does the job