This Android Tutorial Video shows how to add the ViewPager in MainActivity and how to set its PagerAdapter as a FragmentPagerAdapter or a FragmentStatePagerAdapter, use its getItem method to get the current Fragment and it also explores the OnPageChangeListener of ViewPager where we can notified of what page the user has currently swiped to, the ultimate task is to change the ViewPager when the ActionBar changes and vice-versa slidenerd.com Our Official Site Join our discussions about Android at www.facebook.com/groups/AndroidProgramming/ Follow us on facebook.com/slidenerd twitter.com/slidenerdtech pinterest.com/slidenerd