I have the following problem: I am using a navigation drawer in the MainActivity so this is why I use Fragments.
Some Fragments need Tabs, so I inserted a TabLayout in the AppBarLayout below the Toolbar in the MainActivity.
When using a ViewPager in the Fragment and calling mTabLayout.setupWithViewPager
everything works, but only one time. How to setup the TabLayout several times?