Greetings! I have searched this group, read the Common Tasks FAQ, searched elsewhere, to no avail. Here's what I've got working so far. Pardon the obvious lack of refactoring. Right now I'm in the "make it work" phase of things (vs. "make it right" and "make it fast" <grin>):
For starters, we have a basic, tire-kicking type of Android 2.0 app. Main layout (XML) is a simple LinearLayout with two views, an ImageView and a WebView. Both use fill_parent for width + height. ImageView appears on top of WebView, z-order wise. (Done/working.) An anim(ation) resource for fadeout has also been created, using accelerate_decelerate_interpolator. All it does is run the alpha down from 1.0 to 0.0, using config_longAnimTime. (Done/working.) A given Activity (that also implements AnimationListener) is initialized with the aforementioned main layout. Thus, once this particular Activity kicks in, you start off by seeing just the ImageView. Meanwhile, the WebView is asked to load a particular URI. When onPageFinished is called, we see if the ImageView is visible. (Done/working.) If ImageView is visible, we create an Animation object, loading our trusty fadeout via loadAnimation. We set up an animation listener (keep reading) and kick off the fadeout on our ImageView. (Done/ working.) Once onAnimationEnd is called (remember, we 'set up us the listener') we set the ImageView's visibility to View.GONE. (Yes, we should very likely remove the view entirely since we never need it again, but bear with me - I'm starting off with "make it work" - still finding our way around town in this regard!) (Done/working.) Here's the part that is NOT working - or at least it's not working as expected/desired. The animation is fading the ImageView, but it's fading to black instead of fading to transparent. We want to fade in such a way that we reveal the WebView lurking beneath it - our "desired effect" if you will. What's happening now is, you see the image fade to black, then the view is hidden (View.GONE), thus at that point the now-black display disappears, and POP - there's our web view. Ah-ha, you (might?) say, use a transparent background color! Then it fades to transparent and you're all set. Sure enough, that's what I tried next, adjusting the ImageView's XML to use a background color of transparent (@android:color/transparent IIRC) … and it STILL fades to black. Thus, I suspect I'm doing something blatantly wrong but can't put my finger on why. Clues welcome/appreciated. Thank you! - JD -- You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en

