Code example for ViewPager

Methods: setOnPageChangeListener

0
    } 
 
	@Override 
    public void registerToView(View v) { 
		if (v instanceof ViewPager) 
			((ViewPager)v).setOnPageChangeListener(this); 
    } 
}