Skip to content

Instantly share code, notes, and snippets.

@d4vidi
Created November 3, 2018 20:29
Show Gist options
  • Save d4vidi/d46b7395c8ef6d0cfd311ea30c20d111 to your computer and use it in GitHub Desktop.
Save d4vidi/d46b7395c8ef6d0cfd311ea30c20d111 to your computer and use it in GitHub Desktop.
RVPagerSnapHelperListenable().attachToRecyclerView(
recyclerView,
object : RVPagerStateListener {
override fun onPageScroll(pagesState: List<VisiblePageState>) {/*...*/}
override fun onPageSelected(index: Int) {/*...*/}
override fun onScrollStateChanged(state: RVPageScrollState) {/*...*/}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment