Is it possible to have a tablayout inside a tab of another tablayout? I have created the following image for a better explanation. The slide movement desired is as it is des
Everything will remain same like you set ViewPager in Activity. Just you need to use getChildFragmentManager()
in Fragment instead of getFragmentManager()
.
From getChildFragmentManager() documentation
Return a private FragmentManager for placing and managing Fragments inside of this Fragment.
From getFragmentManager() documentation
Return the FragmentManager for interacting with fragments associated with this fragment's activity.
You can see @this answer for complete code.