android / animation-samples

Multiple samples showing the best practices in animation on Android.
Apache License 2.0
2.57k stars 904 forks source link

Transition animation not working when changing RecyclerView To ViewPager to RecyclerView To ViewPager2 #87

Open anjiemo opened 2 years ago

anjiemo commented 2 years ago

I'm trying to replace the RecyclerView to ViewPager in the item (GridToPager) example with RecyclerView to ViewPager2 (RecycleView), because I want to use ViewPager2 as my detail list interface (like a full-page vertical page flipping like Tik Tok, because ViewPager cannot support vertical page turning), but I found that this doesn't work and doesn't achieve the same smooth transition effect as the example, what should I do to make it work like the example (my current work is just to replace the ViewPager in the example with ViewPager2, only That's all).

cklim5 commented 4 months ago

I'm trying to replace the RecyclerView to ViewPager in the item (GridToPager) example with RecyclerView to ViewPager2 (RecycleView), because I want to use ViewPager2 as my detail list interface (like a full-page vertical page flipping like Tik Tok, because ViewPager cannot support vertical page turning), but I found that this doesn't work and doesn't achieve the same smooth transition effect as the example, what should I do to make it work like the example (my current work is just to replace the ViewPager in the example with ViewPager2, only That's all).

cklim5 commented 4 months ago

I'm trying to replace the RecyclerView to ViewPager in the item (GridToPager) example with RecyclerView to ViewPager2 (RecycleView), because I want to use ViewPager2 as my detail list interface (like a full-page vertical page flipping like Tik Tok, because ViewPager cannot support vertical page turning), but I found that this doesn't work and doesn't achieve the same smooth transition effect as the example, what should I do to make it work like the example (my current work is just to replace the ViewPager in the example with ViewPager2, only That's all).