{"id":21130204,"url":"https://github.com/imbryk/LoopingViewPager","last_synced_at":"2025-07-09T01:32:45.794Z","repository":{"id":43331355,"uuid":"12846665","full_name":"imbryk/LoopingViewPager","owner":"imbryk","description":"An android ViewPager extension allowing infinite scrolling","archived":false,"fork":false,"pushed_at":"2019-04-06T19:37:43.000Z","size":534,"stargazers_count":988,"open_issues_count":22,"forks_count":245,"subscribers_count":42,"default_branch":"master","last_synced_at":"2023-10-25T22:24:26.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imbryk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-15T14:28:58.000Z","updated_at":"2023-09-13T15:32:01.000Z","dependencies_parsed_at":"2022-09-04T13:22:33.749Z","dependency_job_id":null,"html_url":"https://github.com/imbryk/LoopingViewPager","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imbryk%2FLoopingViewPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imbryk%2FLoopingViewPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imbryk%2FLoopingViewPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imbryk%2FLoopingViewPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imbryk","download_url":"https://codeload.github.com/imbryk/LoopingViewPager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476373,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T05:32:24.290Z","updated_at":"2024-11-20T05:32:33.389Z","avatar_url":"https://github.com/imbryk.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"NO LONGER MAINTAINED\n====================\n\nLoopingViewPager\n================\n\nAn android ViewPager extension allowing infinite scrolling.\n\n\nYou can use it with \"standart\" `PagerAdapter` (inflating the pager with `Views`),   \nbut you can also use `FragmentPagerAdapter` which allows you to fill the pager with `Fragments`!   \n\nThe ViewPager will actually create 2 additional Views/Fragments to fake the infinite loop.\n\nThis ViewPager is fully compatible with [ViewPagerIndicator][1], and [PagerSlidingTabStrip][2]!\n\n\n\nUsage\n-----\n\nTo use it simply change `\u003candroid.support.v4.view.ViewPager\u003e` to `\u003ccom.imbryk.viewPager.LoopViewPager\u003e`\n\nIf your `PagerAdapter` is used only to create `Views` (i.e. you don't use `FragmentPagerAdapter` or `FragmentStatePagerAdapter`),\nthen no more code changes are needed!\n\n\nIf you want to use `LoopViewPager` with `FragmentPagerAdapter` or `FragmentStatePagerAdapter`\nadditional changes in the adapter must be done.    \nThe adapter must be prepared to create 2 extra items e.g.:    \n* The original adapter creates 4 items: `[0,1,2,3]`   \n* The modified adapter will have to create 6 items `[0,1,2,3,4,5]`   \n* with mapping `realPosition=(position-1)%count`   \n* `[0-\u003e3, 1-\u003e0, 2-\u003e1, 3-\u003e2, 4-\u003e3, 5-\u003e0]`\n\n\nSometimes \"blinking\" can be seen when paginating to first or last view (e.g. when you have a `NetworkImageView` in your layout). \nTo remove this effect, simply call setBoundaryCaching( true ) on your `LoopViewPager`,\nor change `DEFAULT_BOUNDARY_CASHING` to true, if you want to set boundary caching\non all `LoopViewPager` instances. This will prevent the first and last element from being destroyed,\nand every time they need to be displayed the existing instances will be used.\n\n\nSample\n------\nYou can see a sample usage on [ViewPagerIndicator fork][3] (by [Jake Wharton][5])   \nor on [PagerSlidingTabStrip fork][4] (by [Andreas Stütz][6])   \n\nLicense\n=======\n\n    Copyright 2013 Leszek Mzyk\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n    \n    \n [1]: https://github.com/JakeWharton/Android-ViewPagerIndicator\n [2]: https://github.com/astuetz/PagerSlidingTabStrip\n [3]: https://github.com/imbryk/Android-ViewPagerIndicator/compare/master...loopingViewPager-demo\n [4]: https://github.com/imbryk/PagerSlidingTabStrip/compare/master...loopingViewPager-demo\n [5]: https://github.com/JakeWharton\n [6]: https://github.com/astuetz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimbryk%2FLoopingViewPager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimbryk%2FLoopingViewPager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimbryk%2FLoopingViewPager/lists"}