ViewPager + FragmentPagerAdapter + Update Fragment?

0

In implementing a SlidingTabs using the SlidingTabLayout and SlidingTabStrip classes provided by the Android Dev + ViewPager + FragmentPagerAdapter website when the data is updated in the Fragments that were created by the FragmentPagerAdapter what should I do to update them on the screen, in my project does not update it looks like the FragmentPagerAdapter is not recreating the inner fragments

Do I have to use some notify or updatechange or something?

List of popular Java repositories provided by API.GIT

Repository Pulls and Issues List clicked on the first screen

Returning the first screen to select another Repository

The Sliding that should show the new list of Pulls and Issues of the new selected Repository is empty .

    
asked by anonymous 19.09.2017 / 00:51

1 answer

0

I was able to fix the problem by changing the Adapter from type FragmentPagerAdapter to FragmentStatePagerAdapter .

I do not know if this would be the only solution but it worked.

    
19.09.2017 / 13:11