Android TabLayout does not display contents anymore as soon as fragment is switched

前端 未结 1 1366
迷失自我
迷失自我 2021-02-14 16:30

I am using a navigation drawer in my project, with 5 fragments in it. In one fragment I have the in the design support library introduced TabLayout, which includes 2 Fragments.

相关标签:
1条回答
  • 2021-02-14 17:29

    When I used viewPager and back on it, I had empty fragments until switch when I used getSupportFragmentManager.

    Try to use: getChildFragmentManager.

    0 讨论(0)
提交回复
热议问题