Android reverse shared element transition on back after orientation change?

Ankur picture Ankur · Mar 13, 2015 · Viewed 7.3k times · Source

For shared element transition I am following this github project. It has 2 screens - one with recyclerview having number of cards & second the detail screen. As expected, it exhibits shared element transition of imageview & textview from recyclerview item to detail screen & reverse transition on back press.

But, if user changes orientation on detail screen, & then presses back button then the reverse transition animation doesn't work. Looking at this video's frames between 2:49 to 2:57 it seems to be possible even after orientation change. Any idea on this?

Edit:

Please check this video for better understanding.

Answer

Ankur picture Ankur · Mar 19, 2015

At last, I could fix this by applying separate theme to detail screen overriding following attribute value, but not sure why did this parameter change the animation behavior.

<item name="android:windowIsTranslucent">true</item>