CHAPTER 10: Android Animation: Making Your UI Designs Move 389
- Now you are ready to create the anim_lightship.xml file. The easiest way to
do this is to copy the- tags from the inside of the anim_andromeda.xml
file and change lunarlander to energyship and change the value for the
duration parameter to 200 milliseconds, which is 5 FPS (frames per second).
Copy the eighth frame and paste it three more times underneath itself to
create the ninth through eleventh frames, as seen in Figure 10-30. - tags from the inside of the anim_andromeda.xml
Figure 10-31. Use the left-facing chevron < character inside of the
Figure 10-30. Create 11
- Now that the AnimationDrawable object is configured using XML, click on the
anim_lightshipset.xml tab at the top of Eclipse, and switch over into editing
the Animation object XML (bootstrap) definition file, shown in Figure 1 0-3 1.
This Animation object is actually an AnimationSet object, as it uses theparent tag to hold the child transform tags; in this case, these will be a
and transform as well as an tag.