1

ViewPager in Portrait and side to side fragments in landscape

view story
linux-howto

http://stackoverflow.com – I have an application with different layouts in portrait and landscape mode. In portrait the app has a ViewPager with 2 Fragments. In landscape the situation is as follows: - on Phones - I'm showing again the ViewPager with the 2 fragments and the rotation is working fine with onSaveInstanceState overridden. - on Tablets - the 2 Fragments are shown side by side (like in the master/detail examples). When the device is rotated from portrait to landscape, a new instance of the two fragments is created. I tried finding the 2 fragments from the ViewPager by Tag, the fragments are found, but I can (HowTos)