Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in ViewPager slide animation #891

Open
ken1000minus7 opened this issue Mar 14, 2022 · 2 comments
Open

Inconsistency in ViewPager slide animation #891

ken1000minus7 opened this issue Mar 14, 2022 · 2 comments

Comments

@ken1000minus7
Copy link

There is some inconsistency in the slide animation during navigation of the fragments in the BaseMainActivity. For some cases, the navigation is abrupt and no sliding animation appears. This is mainly evident during navigation from

  1. TrackListPagerFragment to DashboardFragment

  2. TrackListPagerFragment to OthersFragment

mobizen_20220314_214331.mp4

One way I am thinking of solving this is by replacing ViewPager used here with ViewPager2. ViewPager2 provides improved and smoother sliding animations during navigation and besides providing other advantages over ViewPager, it is the latest method of paging fragments and is receiving active development support. ViewPager2 can also be used in place of ViewPager for the paging inside the TrackListPagerFragment

@cdhiraj40
Copy link
Contributor

I am not sure if animation is that big of any problem here, also do read the contribution guidelines it talks about animation pull requests. But I do believe that it is worth upgrading to ViewPager2 as it provides way better functionality than viewpager and will help in reusing the views.

@ken1000minus7
Copy link
Author

Well I did read the contribution guidelines and as far as I remember they said that an issue must be opened in case of animations. Nevertheless, I was referring to the problem of the ViewPager not functioning in the desired way which is quite evident in the lack of proper animations during navigation and abruptness while navigating so I think this is more of an issue regarding ViewPager rather than animations 🤔 and for this, I believe shifting to ViewPager2 will be a much better option in the long term provided the advantages it offers 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants