I have a very simple code where I use Action Bar with tab fragments. It works fine after load, but after orientation change it goes crazy. The old fragment also visible (why
Try using ft.replace(R.id.content, mFragment) in place of ft.attach(mFragment); in onTabSelected function