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

Not infinite loop #80

Open
satitkung opened this issue Jun 29, 2020 · 1 comment
Open

Not infinite loop #80

satitkung opened this issue Jun 29, 2020 · 1 comment

Comments

@satitkung
Copy link

I just implement this library today but it's not infinite loop. Can anyone explain to me.

@maqsats
Copy link

maqsats commented Oct 5, 2021

I am new to this kind of issue writing. so don't judge me strongly. If you want to turn off infinite cycle you can create HorizontalPagerAdapter with variable and setDate lately after initialize.
For example:
adapter : HorizontalAdapter? = null
onCreate ->
adapter = HorizontalAdapter()
recyclerInfinite.adapter = adapter
adapter.setDate("your arraylist") I think it is bug but if you do like that you can get not infinite cycle
However:
if you init your cycle like this:
onCreate ->
recyclerInfinite.adapter = HorizontalAdapter(withYourDefaultList)
you will get infiniteRecyclerView effect

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