I need to develop an app with tab bar on the bottom, but I have lots of problems with Fragments, where Android documentation shows how to use TabHost and Fragments.
Because there is nothing shown, about how to do it right with every tab stack.
As I can go to tab1 it’s open Fragment A, then I want go into deep and open Fragment B and have the possibility to switch tab to tab2, as well as switch back seeing the same Fragment B in tab1.
There are some solutions creating for every tab a FragmentActivity, but for that management you should use TabActivity, which is deprecated.
So maybe I could draw my tab bar and put it on all layouts and every time user press tab bar button I just start an Activity ?
If this is possible maybe some had implemented this, or could show some tutorial how to draw, or use this?
Thanks.
In XML down_tabs.xml you add this code
And in Activity class add tabs specifications as,
I hope it will works fine.