If you stack the two drawables as ImageViews on top of each other (possibly using a FrameLayout or RelativeLayout) a Tween Animation [http://developer.android.com/intl/fr/guide/topics/graphics/2d- graphics.html#tween-animation] using an alpha transformation should create the appearance of a cross-fade. One of the caveats is that I believe this trick will only work if your images are separate ImageViews and not a background attribute of the TextView.
Juan On Apr 15, 9:09 pm, HippoMan <[email protected]> wrote: > I'd like to change the background image of a TextView by morphing it > into the new image. What I mean by this is that I want the old image > to fade out at the same time the new image is fading in, so that it > looks like the old image is transforming itself into the new image. > > I know how to cause the old image to fade out and then immediately > afterwards have the new image fade in. However, I'm looking for a way > to cause the fade-out and the fade-in to occur simultaneously. > > I'm sure that this can be done by fiddling with the images outside of > Android, but what I'm looking for is a way to use nothing more than > Android's standard animation facilities to implement this morphing > behavior with any two, standard, PNG background images. > > Is this possible? I haven't been able to find any docs that describe > how to do this, and so I'm not optimistic that this can be > accomplished solely via Android animation. But hope springs eternal, > and so if anyone knows of a way to implement this in Android, I'd very > much appreciate a pointer to some instructions or examples. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

