1

Bug in Action Bar tabs when changing orientation

view story
linux-howto

http://stackoverflow.com – So I wrote this simple tab navigation. It has two tabs called "Fragment 1" and "Fragment 2". If you hit either one, it should display respective texts "Fragment 1" or "Fragment 2" in the content area. My code works fine at the start. However, when I turn the device to change into landscape orientation, the text messes up. It displays Fragment with a combination of 1 and 2 on the same spot. I think both texts are being displayed at the same time. The text remains that way I try to change tabs after this bug occurs. This also happens when I change from landscape to portrait. What is causing thi (HowTos)