Devlight / Devlight/InfiniteCycleViewPager

Bug: turn off and on infinite cycle

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.7k
Forks
821
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.