Replace Fragment inside a ViewPager

后端 未结 18 1654
别那么骄傲
别那么骄傲 2020-11-22 00:26

I\'m trying to use Fragment with a ViewPager using the FragmentPagerAdapter. What I\'m looking for to achieve is to replace a fragment, positioned

18条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 01:06

    I have created a ViewPager with 3 elements and 2 sub elements for index 2 and 3 and here what I wanted to do..

    enter image description here

    I have implemented this with the help from previous questions and answers from StackOverFlow and here is the link.

    ViewPagerChildFragments

提交回复
热议问题