how to display 2 fragments in a viewpager

view story

http://stackoverflow.com – My application uses a ViewPager with 5 swipe tabs. I would like to inflate 2 fragments or 2 tab pages on my ViewPager when running the app on large devices and landscape orientation and 1 fragment or 1 tab page when running on smaller devices or portrait view. Also, it should still be able to swipe through all the tabs like I normally do when displaying single fragments on my ViewPager. I initialized and inflate my ViewPager in my CourseFragment class which extends Fragment: ViewPager mViewPager = (ViewPager) getView().findViewById( R.id.pagerYear); InfoTechPageAdapter infoT (HowTos)