In my app I'm trying to use the newly introduced element sharing between activities. Everything works like a charm if the shared element is with fixed position (e.g. android:layout_gravity="top") but the problem comes when the view is anchored.
My first activity looks like this:
... My second activity looks like this
... ... The code I use is as follows:
Intent intent = ...; ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(this, view, "fab_button"); startActivity(intent, options.toBundle()); If I use the layout_anchor and layout_anchorGravity attributes the transition between the two FABs is done with no animation. If the second FAB is with fixed position, it works perfectly. What am I doing wrong?