I’m back with yet another demo that pushes a specific component to its limits - the ViewPager. How many times have you had to add dozens of identical layouts, and then struggle with optimization? We all know that having too many components visible on screen at a given time can cause issues, especially with memory consumption. Moreover, even if you dynamically went on adding arrangements and removing old ones, you lose the ability to scroll back.
To address all these issues, and create a sustainable solution for infinite scrolling in the ViewPager in both directions, I have created InfiniPager - a vanilla Kodular snippet that will hopefully prove to be useful for others. It is first and foremost a demonstration of the infinite capabilities of vanilla Kodular.
If you do have any questions or comments, do let me know. Feedback is highly appreciated. The blocks are heavily commented to help anyone trying to understand what everything is, and how to use it.