• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

NavigationDrawer With Viewpager

I have MainActivity which extends Fragment Activity, has a NavigationDrawer and a ViewPager(3 fragments) in its layout
On each Item click of NavigationDrawer corresponding fragment is called.
On every launch of the application, I can able to slide between the 3 views in the View Pager, But if I navigate to other fragment from the DrawerLayout and come back to the layout which has the ViewPager, I am not able to see all the 3 fragments sliding in the view pager, some appears and some disappears in a random fashion


We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.