Fragment Tabs inside Fragment : <p>I have in my Main Activity an Action bar navigation using tabs using Fragments (with Material Design), as below which works well, but now I wish to have Tab navigation within my Fragments...</p>

<pre><code>// Add Fragments to Tabs in Main Activity
private void setupViewPager(ViewPager viewPager) {
    Adapter adapter = new Adapter(getSupportFragmentManager());
    adapter.addFragment(new FeedsFragment(), "Latest Updates");
    adapter.addFragment(new ClubTeamsFragment(), "Club Teams");
    adapter.addFragment(new FixturesFragment(), "Fixtures");
    adapter.addFragment(new ResultsFragment(), "Results");
    adapter.addFragment(new ClubFieldsFragment(), "Club Fields");
    viewPager.setAdapter(adapter);
}
</code></pre>

<p>I'm pretty sure that TabHost is now deprecated.</p>

<p>I wish to achieve the attached image. The blue tabs are at the Main Activity level and the gray date tabs are in the selected fragment view.</p>

<p><a href="https://i.stack.imgur.com/aEN6v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aEN6v.png" alt="enter image description here"></a> </p>

<p>I have read a few post about using Tab Host or Fragment Activity, or do I use Activity that is extended to Fragment?</p>
