I've just started to rebuild my app for Android 5.0, using the appcompat support library. I've just finished implementing a transition featuring shared elements. It seems to work well, untill I add a webview
.
I've made a video to demonstrate the glitch. https://www.youtube.com/watch?v=MuuGZc0Vwow
As you can see, all's fine when I open the activity. When I close it, the glitch occurs. As you can see all elements fade out like they should, except for the webview. Which just hangs there until the animation is over, kinda ruining the entire smoothness of the animation.
How do I fix this? If it could be related to the way I've set things up I'd be happy to share some code.
Thanks in advance.
webview.setTransitionGroup(true)
in your second activity'sonCreate()
method. – Romano12-05 23:47:42.372: E/AndroidRuntime(9599): java.lang.IllegalStateException: Unable to create layer for WebView
– SearsetTransitionGroup()
? Or does it happen when you start the activity transition? – RomanosetTransitionGroup()
, there's no crash. – Sear