Now Your Friends Seem Animated
Figure 45. Patchy with a hidden status entry
Step #3: Fading In and Out
Of course, we have not yet used an animation, which is the point of this
exercise.
First, we need to define our animations. In this case, we will use ones
declared in animation XML files.
Create
a
Patchy/res/anim
directory,
then
create
Patchy/res/anim/fade_out.xml as follows:

android:fromAlpha="1.0"
android:toAlpha="0.0"
android:duration="500" />
Also create Patchy/res/anim/fade_in.xml:
268
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
Précédent

- 301/447

Suivant