1

ActionBar tabs and multi-fragment layout with ViewPager

view story
linux-howto

http://stackoverflow.com – I have an application that uses ActionBar tabs for navigation. With these tabs I use FragmentPagerAdapter with a ViewPager in the layout. I have configured these in my application's main Activity. In there I add a page change listener for the ViewPager and change tabs regarding to position. I also do it the other way around when a tab is pressed. This is all fine. Then I have the contents I have in the tabs. Both of them extend Fragment class. The first one has to change the layout according to the device. On landscape tablets (layout-sw600dp-land) I have a layout with two fragments and othe (HowTos)