My android application possesses two fragments
1. Left one( that is a menu list)
2. Right one( that is the detail of one item of the left menu)
The problem i am facing is to add tabs on each detail screen(the right one)
I searched a lot with the tags “tabs inside fragment” or “how to add tabhost in a fragment” etc.
Please help me out.
I am stuck in it! 🙁
Im facing the same problem and this solution works for me:
MainActivity – This activity contains the actionbar tabs (not tabhost)
Fragment1 (tab1)
Fragment2 (tab2) – This Fragment has inside 1 LinearLayout on left to show a menu with weight = 1 and other LinearLayout on right to show the details. Inside the right linearLayout i have styled a Radiogroup to show this radiogroup like tabs (something like this: https://github.com/makeramen/android-segmentedradiobutton but with tabs assets) Then I will change linearlayouts to simulate tabs inside the detail fragment.
I hope you get the idea