MultiViewPager alternatives and similar packages
Based on the "ViewPager Widget" category.
Alternatively, view MultiViewPager 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 ViewPager extends that provide scroll based animation like Jazz Hands for iOS. Jazz Hands library provided by IFTTT : -
RecyclerViewPager
A ViewPager implemention base on RecyclerView's code. Support fling operation like gallary. -
SpringIndicator
A spring indicator like Morning Routine guide. -
android-auto-scroll-view-pager
Android auto scroll viewpager or viewpager in viewpager -
InfiniteViewPager
Augment Android's ViewPager with wrap-around functionality. -
FlycoPageIndicator
A Page Indicator Lib is realized in a different way. Support for Android 2.2 and up. -
parallaxviewpager
An easy-to-use ViewPager subclass with parallax background effect for Android apps. -
NumericPageIndicator
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count -
glazy-viewpager
Android ViewPager template with cool animation. -
SpinningTabStrip
SpinningTabStrip & SpinningViewPager are android extensions allowing infinite scrolling. -
LastPagerAdapter
👊 Ditch those long ViewPager Adapters you hate writing! -
Sliding Tab With Color Icons
Sliding Tab With Color Icons!
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of MultiViewPager or a related project?
README
MultiViewPager
UPDATE: This behavior is now included in the RecyclerView for support lib 24.2.0 and later. Please look at using LinearSnapHelper.
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.
Sample
Simply add the MultiViewPager into your layout:
<com.pixplicity.multiviewpager.MultiViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:matchChildWidth="@+id/child_view_to_match" />
Be sure to declare the app
namespace:
xmlns:app="http://schemas.android.com/apk/res-auto"
Take note of the custom attribute matchChildWidth
. This attribute should match an ID in the ViewPager's first child view. In the sample project, the layout of the pages is:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}" >
<FrameLayout
android:id="@+id/vg_cover"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_centerInParent="true" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
android:background="@drawable/bg_page"
android:scaleType="centerInside"
android:src="@drawable/im_pixplicity"
tools:ignore="ContentDescription" />
</FrameLayout>
</RelativeLayout>
The child view with ID @id/vg_cover
will determine the width of the page. In this example, the width would be 200dp. In order to get this hooked up, we provide MultiViewPager with the reference to the child, @id/vg_cover
:
<com.pixplicity.multiviewpager.MultiViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:matchChildWidth="@+id/vg_cover" />
In this way, it knows to size the pages according to the dimension of that View or ViewGroup.
Download
Download the latest AAR or grab via Maven:
<dependency>
<groupId>com.pixplicity.multiviewpager</groupId>
<artifactId>library</artifactId>
<version>1.0</version>
<type>aar</type>
</dependency>
or Gradle:
compile 'com.pixplicity.multiviewpager:library:1.0'
License
Licensed under the Apache license.
*Note that all licence references and agreements mentioned in the MultiViewPager README section above
are relevant to that project's source code only.