Android Lolipop has an api that makes it easy to switch between common elements in different actions.
Activity Transitions
It seems that this api does not support multi-view transition. Is there a way to do this using the same api?
EDIT
Following @pskink's tips, I use a different method
ActivityOptions options = ActivityOptions .makeSceneTransitionAnimation(this, Pair.create((View)view, "viewPager"), Pair.create((View) fab, "fab")); startActivity(intent, options.toBundle());
This worked fine from ActivityA to ActivityB, but clicking the back button leads to this stacktrace
A/OpenGLRenderer(17305): requireSurface() called but no surface set! A/libc(17305): Fatal signal 6 (SIGABRT), code -6 in tid 17349(RenderThread) Build fingerprint: 'google/hammerhead/hammerhead:5.0/LRX21O/1570415:user/release-keys' Revision: '11' ABI: 'arm' pid: 3364, tid: 3414, name: RenderThread >>> com.example.package <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr
EDIT2
Only the logs that I get when filtering by package name are listed below. The first log looks like it comes from a render script, I placed the log above, as I thought it was connected.
A / OpenGLRenderer (11128): requireSurface () but not mounted on the surface!
A / libc (11128): fatal signal 6 (SIGABRT), code -6 in tid 11219 (RenderThread)
I / ci (11358): Dynamic Creator Creation
W / ResourcesManager (11358): asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or does not contain
W / ResourcesManager (11358): asset path '/system/framework/com.android.location.provider.jar' does not exist or does not contain
EDIT3
So, I was able to get this to work by disabling the mapfragment that was on activityA. I am still studying why this will happen.