The second set of tabs in the Android fragment

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

enter image description here

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?

+4
source share
1 answer

.... TabLayout, 22. , Actionbar.

TabLayout XML.

TabLayout setUpWithViewPager(). , .

, . http://android-developers.blogspot.in/2015/05/android-design-support-library.html

0

All Articles