Reputation: 11
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
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