ParallaxViewPager
Android Parallax ViewPager.
Usage
<com.github.ybq.parallaxviewpager.ParallaxViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
pv:interpolator="@anim/decelerate_interpolator"
pv:mode="right_overlay"
pv:outset="62%"
pv:shadow_width="30dp"/>
Gradle Dependency
- Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
- Add the dependency
dependencies {
compile 'com.github.ybq:parallaxviewpager:2.0.0'
}