Vertical-ViewPager-Horizontal-ViewPager-Android

This application contains custom ViewPager which provide the effect of vertical card swiping

sample.gif

To use VerticalViewPager

Add below line in your app gradle file

implementation 'com.mohitdev:verticalviewpager:0.0.2'

Add following code into your layout xml file

<com.mohitdev.verticalviewpager.VerticalViewPager android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/viewPager" />

Add below code into you java file

VerticalViewPager mViewPager = (VerticalViewPager) findViewById(R.id.viewPager);

Now viewpager will provide you above effect with all the functionality of normal viewpager.