Swipe tabs within fragment
<p>I have a navigation drawer that loads a fragment in most cases when you  tap a drawer item.</p>

<p>I want to load a fragment that has swiping tabs withing the fragment.
i.e </p>

<p>nav drawer (Activity)</p>

<p>--- TabFragments (fragment)</p>

<p>------- Tab1 (fragment)</p>

<p>------- Tab2 (fragment)</p>

<p>Most examples I have seen show how you can add swipe tabs to activities, can someone please guide on how to do this for fragments.</p>

<p>I have actually got it working to the point wher i have a viewpager, and the FragmentPagerAdapter set using the answer in this question:</p>

<p><a href="https://stackoverflow.com/questions/27169093/how-to-put-swipe-tab-views-inside-one-of-navigation-drawer-option">How to put swipe tab views inside one of navigation drawer option</a></p>

<p>I can swipe through the fragments, however I want to have the tab titles at the top in the toolbar, but not sure how to do it given that I am doing this from a fragment</p>