I want to perform animations within a view.  However, the behavior of
the animations does not seem consistent depending on the sequence, and
I don't understand why.  This example performs a simple fade out of
the image:
XML:
<set xmlns:android="http://schemas.android.com/apk/res/android";
android:interpolator="@android:anim/accelerate_interpolator">
<alpha
       android:fromAlpha="1.0"
       android:toAlpha="0.0"
       android:duration="1000" />
</set>

However, if I have change the XML, so that the animation should fade
back in, nothing happens. The screen blanks out (not fades out) and
then reappears after the animation is over.
XML:
<set xmlns:android="http://schemas.android.com/apk/res/android";
android:interpolator="@android:anim/accelerate_interpolator">
<alpha
       android:fromAlpha="1.0"
       android:toAlpha="0.0"
       android:duration="1000" />
<alpha
       android:fromAlpha="0.0"
       android:toAlpha="1.0"
       android:duration="1000"
       android:startOffset="2000"
       />
</set>
NOTE: if I run just the "fade-in" sequence alone (the second half),
then it also works appropriately.

What am I missing?  Thanks for any assistance.
JIm

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to