The method getChildFragmentManager() is undefined

后端 未结 1 1627
一个人的身影
一个人的身影 2021-01-12 10:34

I have a SherlockFragmentActivity, this Activity have a SectionsPagerAdapter and a ViewPager. When I call the constructor of the SectionsPagerAdapter with getChildFr

相关标签:
1条回答
  • 2021-01-12 11:09

    getChildFragmentManager() is a method on Fragment, not on FragmentActivity. Use getSupportFragmentManager() on a FragmentActivity.

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