I have a main Activity. In it I use a navigationView. If I change menu items, the fragment contained in the activity will be changed.
Now, I have a menu item called news. I have different kind of news, so I want to use TabLayout with ViewPager in NewsFragment. The tabLayout is not visible tho, and I know the reason, why. It is because in the main Activity I use a navigationBar and AppBarLayout. (I know, it is the reason from the following post: TabLayout not showing tabs after adding navigation bar
Does anyone have a workaround for this problem?