Hey, need help with
shared element transition using a
ViewPager2 - Recyclerview - DetailFragment
The MainActivity contains ViewPager2, BottomNavigationView, and a FrameLayout container (to display DetailFragment)
The first fragment of ViewPager2 (FragmentA) contains TabLayout and another ViewPager2
Tab1’s fragment shows card view’s in a recycler view
When user taps on the cardview, the DetailFragment is opened in activity_main.xml’s FrameLayout
I’ve tried these 2 ways to implement Shared element transition but it doesn’t seem to work in this scenario. Any ideas on how to resolve this?
Sample 1:
https://developer.android.com/guide/fragments/animate
Sample 2:
https://codelabs.developers.google.com/codelabs/material-motion-android#3
NOTE: Navigation components is not being used here.
Thanks!