I want to add a second row of tabs to an Android app on the second snippet available on the ActionBar tabs.

Tab 1 shows fragment 1.
Tab 2 shows fragment 2, but I would like fragment 2 to have a second row of tabs so that it displays fragment a or b.
But it looks like fragments inside fragments cannot be executed, and the ActionBar submenu cannot be turned on or off. I also tried using the FragmentStatePagerAdapter with TabHost and ViewPager, which displays tabs in order but does not display fragments. Is there any other way to do this?
source
share