A (175)

(Tuis.) #1
CHAPTER 10: Android Animation: Making Your UI Designs Move 361

Next, add the android:oneshot="false" parameter into the parent tag, as seen in
Figure 1 0- 3. Add eight child tags with android:drawable parameters referencing the eight
numbered file names for the animation frames, and add an android:duration value specifying how
fast you want your spaceship to spin!


Figure 10-2. Create an anim_milkyway.xml animation-list


Figure 10-3. Configure the parent tag with a oneshot parameter, and add eight child tags

Free download pdf