Is Nested Fragment Possible?

前端 未结 1 2019
猫巷女王i
猫巷女王i 2021-01-23 12:30

I have a ViewPager contains three fragment, and I want to put 3 new fragments into the third fragment.Is that possible?

[ViewPager]
    [Fragment 1]
    [Fragmen         


        
1条回答
  •  感动是毒
    2021-01-23 12:46

    Yes, Nested fragment is possible.

    You have to use getChildFragmentManager() instead of getFragmentManager() while you are working with nested fragments. For more details look into this link.

    Hope this will help you....:)

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