Viewpager + Fragmentpageradapter + Update Fragment?

Asked

Viewed 218 times

0

In the implementation of a Slidingtabs using the Slidingtablayout and Slidingtabstrip classes provided by the Android website Dev + Viewpager + Fragmentpageradapter when the data is updated in the Fragments that were created by Fragmentpageradapter what should I do to update they on the screen, in my project does not update it seems that the Fragmentpageradapter is not recreating the internal Fragments

I have to use some notify or updatechange or something?

List of popular Java repositories provided by the.GIT API

List of Repository Pulls and Issues clicked on the first screen

Going back to the first screen to select another Repository

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

1 answer

1

I was able to fix the problem by changing the Adapter of the kind FragmentPagerAdapter for FragmentStatePagerAdapter.

I don’t know if that would be the only solution but it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.