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

RecyclerView + PagerSnapHelper #145

Open
GodFan4 opened this issue Sep 6, 2020 · 1 comment
Open

RecyclerView + PagerSnapHelper #145

GodFan4 opened this issue Sep 6, 2020 · 1 comment

Comments

@GodFan4
Copy link

GodFan4 commented Sep 6, 2020

list.size is 15, one page have 3.
so pages is 5
How to make the number of indicators the same as the number of pages,not same as the list.siz

val layoutManager = GridLayoutManager(this,3,GridLayoutManager.HORIZONTAL,false)
recyclerview.layoutManager = layoutManager
val snapHelper = PagerSnapHelper()
snapHelper.attachToRecyclerView(recyclerview)
circleIndicator.attachToRecyclerView(recyclerview,snapHelper)

@ongakuer
Copy link
Owner

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

2 participants