Home

Awesome

API GitHub issues Android Arsenal GitHub license androidx

Androidx Auto Scroll ViewPager

Thanks

Many thanks to Trinea because this library is the newest, kotlin version of his library. We support AndroidX library, so if you have problem when migrating to AndroidX, this version should work like a charm.

Installation

Gradle

Add this to your root build.gradle file under repositories:

allprojects {
	repositories {
		maven { url "https://jitpack.io" }
	}
}

Add this to your app level build.gradle as dependency:

implementation 'com.github.pzienowicz:androidx-auto-scroll-view-pager:{latest.version}'

Latest version:

Usage

<pl.pzienowicz.autoscrollviewpager.AutoScrollViewPager
	android:id="@+id/view_pager"
	android:layout_width="match_parent"
	android:layout_height="wrap_content" />

instead of

<android.support.v4.view.ViewPager
	android:id="@+id/view_pager"
	android:layout_width="match_parent"
	android:layout_height="wrap_content" />

Functions

Settings

Proguard

-keep class pl.pzienowicz.** { *; }
-keepclassmembers class pl.pzienowicz.** { *; }
-dontwarn pl.pzienowicz.**

Example

Please check example app contained in this repository. This is how it looks like: Example