Code example for ViewPager.SimpleOnPageChangeListener

0
 
	@Override 
	public void onPause() { 
		super.onPause(); 
	} 
	private static class PageListener extends SimpleOnPageChangeListener { 
		public void onPageSelected(int position) {
 
 
			Log.d(TAG, "FROM position " + _position + " to " + position);
			_position = position;
		} 
	} 
 
 
 
	private class ContentPagerAdapter extends FragmentPagerAdapter { 
		FragmentManager fm;
		public ContentPagerAdapter(FragmentManager fm) {
			super(fm);
			this.fm = fm;