A (175)

(Tuis.) #1

388 CHAPTER 10: Android Animation: Making Your UI Designs Move


Figure 10-28. Right-click on /res/drawable to display the dialog on the left and right-click on the /res/anim folder to display the
dialog on the right



  1. Before you setup your AnimationDrawable object XML definition file which
    you created in the dialog shown on the left side of Figure 10-28, you must
    first copy the 11 lightship animation frames, which are optimized using the
    PNG8 format, into the /res/drawable-xhdpi folder for your HelloUniverse
    project. Use a Windows Explorer file management utility, shown in Figure 1 0-2 9
    with energyship0.png through energyship10.png files installed. Also shown
    are the ImageButton assets, galaxy background images, decorative ring
    background compositing elements, custom application icon, lunarlander
    animation asset, and the friendship spaceship PNG. You are getting quite a
    collection (three dozen) of drawable resources here!


Figure 10-29. Copy 11 energyship PNG8 files from the book repository into your /res/drawable-xhdpi folder

Free download pdf