'Android ViewPager and transitions
I'm using ViewPager in my App as base component for screen switching. What I dont like is animation of transition. That animation is used based on in what order I put screens inside ViewPagerAdapter. This order is simply wrong, because in general there is usually never only single screen as next. I have options and each option will move you to another screen. So it can branch. And in that next screen there could be another branch to 2 different screens. So animations are simply wrong (it shows that I go back from screen (animation slide to the left) even if I go forward in flow).
I would like to set slide animation for each screen switch. Is this possible? I saw that PageTransformer can be applied only for entire ViewPagerAdapter not a single screen.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
