Aaditya Sindhu
Aaditya Sindhu

Reputation: 11

Shared Element Transitions not working on Show/Hide fragments

I want to have snapchat like interface. Got two fragments and when going from one to other, i would like to just hide/show than 'replace' as they are heavy to create(nested fragments). But shared element transition is not working on show/hide. Any ideas ?

Thanks a lot

Upvotes: 1

Views: 769

Answers (1)

Karakuri
Karakuri

Reputation: 38595

I had the same (or a similar) problem, where the transition worked correctly when using replace() but broke when using show() and hide(). What fixed it for me was calling setReorderingAllowed(true) on the transaction.

Upvotes: 1

Related Questions