InfiniteViewPager alternatives and similar packages
Based on the "ViewPager Widget" category.
Alternatively, view InfiniteViewPager alternatives based on common mentions on social networks and blogs.
-
Android-ViewPagerIndicator
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock. Originally based on Patrik Åkerfeldt's ViewFlow. -
SCViewPager
A simple keyframe-based animation framework for UIKit. Perfect for scrolling app intros. -
WoWoViewPager
Combine ViewPager and Animations to provide a simple way to create applications' guide pages. -
SpringIndicator
A spring indicator like Morning Routine guide. -
android-auto-scroll-view-pager
Android auto scroll viewpager or viewpager in viewpager -
Onboarding
A beautiful way to introduce users to your app -
HollyViewPager
A different beautiful ViewPager, with quick swipe controls -
LoopingViewPager
An android ViewPager extension allowing infinite scrolling -
MultiViewPager
The MultiViewPager is an extension of the support-v4 library's ViewPager that allows the pages to be wider or narrower than the ViewPager itself. It takes care of aligning the pages next to each other, and always keeping the selected page centered. -
FlycoPageIndicator
A Page Indicator Lib is realized in a different way. -
VerticalViewPager
Vertical implementation of Android ViewPager -
parallaxviewpager
[Development stopped in 2014. Unfinished and not stable - not recommended to use.] An easy-to-use ViewPager subclass with parallax background effect for Android apps. -
ViewPager3D
Extension of Android ViewPager with a 3D swipe effect -
NumericPageIndicator
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count -
ViewPagerExtensions
A set of custom views for the ViewPager from the Android Support Package -
glazy-viewpager
Android ViewPager template with cool animation. -
Android-ScreenSlidePager
Pager (especially for ViewPager) indicator in two styles: circle & fraction. -
LastPagerAdapter
Don't write a ViewPager Adapter! Hook up your ViewPager to your data model using Android Data Binding Framework. With Kotlin support! -
Sliding Tab With Color Icons
Library for Sliding Tab With Color Icons!
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of InfiniteViewPager or a related project?
README
Infinite View Pager
Augment Android's ViewPager with wrap-around functionality. Original StackOverflow question: http://stackoverflow.com/questions/7546224/viewpager-as-a-circular-queue-wrapping
Problem
With a normal ViewPager, you can only scroll from the first page to second page (and so forth), from left-to-right. Once you reach the last page, your only option is to scroll backwards, right-to-left. In other words, 'wrap-around scrolling' (going from first-to-last, and last-to-first) is not possible.
Solution
Use the InfiniteViewPager
in your Activity/Fragment layout:
<com.antonyt.infiniteviewpager.InfiniteViewPager
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
Wrap your existing PagerAdapter
with the InfinitePagerAdapter
:
PagerAdapter wrappedAdapter = new InfinitePagerAdapter(adapter);
viewPager.setAdapter(wrappedAdapter);
Gradle build
To install the demo application to your device run the following task:
$ ./gradlew installDebug
To deploy the library to your local Maven repository run the following task:
$ ./gradlew install
Then, to use the library in your project add the following to your build.gradle
:
dependencies {
compile 'com.antonyt.infiniteviewpager:library:1.0.0'
}
Wrapped scrolling should now be possible with your ViewPager
. The pages you see are not duplicates - each page from your PagerAdapter
is only created once and then reused. This means you do not have to worry about managing multiple instances of the same Fragment
.
Caveats
It is only possible to achieve wrapping when you have at least 4 pages. This is because of the way the ViewPager
creates, destroys, and displays the pages. No fix for the general case has been found.