Skip to content

Instantly share code, notes, and snippets.

@Aracem
Created May 23, 2018 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aracem/9a6d1a14410756c5cfafd32685510d83 to your computer and use it in GitHub Desktop.
Save Aracem/9a6d1a14410756c5cfafd32685510d83 to your computer and use it in GitHub Desktop.
OnPageChangeListenerAdapter to easily implement this listener
open class OnPageChangeListenerAdapter : OnPageChangeListener {
override fun onPageScrollStateChanged(state: Int) {
}
override fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int) {
}
override fun onPageSelected(position: Int) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment