Fairly straightforward question here, but I can’t seem to find someone who has asked this already. Most likely not using the right keywords.
In any case, here is my scenario:
I am launching a new activity in which I show a web view. I have called overridePendingTransition in order to get the animation I want when I switch to the new activity, which works fine (at least, the animation part works fine). However, there are a couple things which take away from the effect.
What I want is to have the webview slide over the previous activity, from the bottom, and when the user presses back, it should slide back down out of site. The second part of this works like a charm, but the first part isn’t exactly what I want.
Immediately upon triggering the new activity, the old one is hidden, and in its place is blackness, so it looks like the webview slides over blackness. I would like to have it leave the previous activity in the background instead of hiding it, so the webview slides over that. Is this possible?
Thanks!
Create your custom transition animation XML resource files that achieve the desired effect and call Activity.overridePendingTransition prior starting the next Activity.