CHAPTER 10: Android Animation: Making Your UI Designs Move 391
- Next, add a line of space under the
tag, use the left-facing chevron
to popup the helper dialog, and double-click on thechild tag option,
or type the openingcontainer characters, to prepare
to add parameters to the AlphaAnimation object child tag container. If you
want to see the parameters which are allowed inside of the alpha tag, use the
android: work process to popup the parameter helper dialog. - Next, you need to add parameters to animate opacity from 100% to 67%
and back (repeatMode="reverse") over a 2250 -millisecond duration. Set the
pivot point to the middle (50%), and set a repeatCount of infinite, using the
following XML markup parameters, as shown in Figure 10-34:
<alpha android:fromAlpha="1.0" android:toAlpha="0.67" android:duration="2250"
android:repeatCount="infinite" android:repeatMode="reverse" />
Figure 10-34. Add an
Figure 10-33. Add a