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

Support for ViewPager2 #139

Open
soroushLotfi opened this issue Jan 4, 2021 · 3 comments
Open

Support for ViewPager2 #139

soroushLotfi opened this issue Jan 4, 2021 · 3 comments

Comments

@soroushLotfi
Copy link

Please add support for ViewPager2. It doesn't work when I pass the id of a ViewPager2 to piv_viewPager.

@segunfrancis
Copy link

I'm facing the same issue.
I initially set the view pager inside XML but it was not working. I then tried to set it programmatically and got a compile error

@Quelake
Copy link

Quelake commented Mar 15, 2021

Same here, want to incorporate ViewPager2 but it breaks the functionality. Please review the PR that is open that will enable the support for viewpager2 please! Thanks

@victorManuelOllervidez
Copy link

In case of someone needs use this library with ViewPager2 add this lines:

pageIndicatorView.count = pageAdapter.itemCount (inside your Fragment/Activity)

and inside of ViewPager2.OnPageChangeCallback.onPageSelected set:

pageIndicatorView.selection = position

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

No branches or pull requests

4 participants