added in version 22.1.0
belongs to Maven artifact


public static class ViewPager.SimpleOnPageChangeListener
extends Object implements ViewPager.OnPageChangeListener


Simple implementation of the ViewPager.OnPageChangeListener interface with stub implementations of each method. Extend this if you do not intend to override every method of ViewPager.OnPageChangeListener.


Public constructors


Public methods

void onPageScrollStateChanged(int state)

Called when the scroll state changes.

void onPageScrolled(int position, float positionOffset, int positionOffsetPixels)

This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch scroll.

void onPageSelected(int position)

This method will be invoked when a new page becomes selected.

Inherited methods

From class java.lang.Object
From interface

Public constructors


added in version 22.1.0
ViewPager.SimpleOnPageChangeListener ()

Public methods


added in version 22.1.0
void onPageScrollStateChanged (int state)

Called when t