How to maintain fragment\'s state when it is shown within FragmentTabHost?
Thanks to this tutorial, I\'m able to implement FragmentTabHost in my applica
Had the same thing in my app.
You will need to copy the FragmentTabHost to your project, point your code to use the new custom FragmentTabHost and then change the code of doTabChanged to following implementation:
private FragmentTransaction doTabChanged(String tabId, FragmentTransaction ft) {
TabInfo newTab = null;
for (int i=0; i
The change that was made is that instead of deattach/attach the fragment, we are doing hide/show