finds.dev← search

// the find

Trinea/android-auto-scroll-view-pager

★ 1,664 · Java · Apache-2.0 · updated Feb 2020

Android auto scroll viewpager or viewpager in viewpager

A ViewPager subclass that adds auto-scrolling and cycling behavior, plus nested ViewPager support. Explicitly deprecated by the author in the README, who points to a Kotlin/AndroidX fork. This is a historical artifact at this point.

The core idea is well-contained — two files, one for auto-scroll logic and one for duration control. The scroll duration override via reflection on the Scroller is a legitimate workaround for the lack of a public API. Touch-to-pause and configurable border behavior cover the common image carousel use cases without bloat.

Dead project — last commit 2020, still on android-support-v4 (not AndroidX), ships a bundled jar instead of using a proper dependency. The Gradle dependency uses the deprecated `compile` configuration, which hasn't worked since AGP 3.x. Incompatible with ViewPagerIndicator when cycling is on, which is the case most people actually want. If you're starting a project today, there's no reason to use this over the AndroidX fork or just ViewPager2 with an adapter.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →