Without extending Fragment State Pager Adapter, View Pager returns fragments cached, which is an incorrect position. Two and half years after the OP posed his question, this issue is still, well, still an issue.It's obvious Google's priority on this isn't particularly high, so rather than find a fix, I found a workaround.Apart from being free from ads, the Mod apk also makes Show Box demand less permissions. Also, the Mod app doesn’t interrupt your app after launching with update notifications you might not want. I'm using the View Pager from the compatibility library.
Another possible solution could be waiting a few days for the movie to be uploaded in a better print. But if the size is what is preventing you from getting the Show Box app, you can look into getting the Show Box Lite Mod apk file, which is 20 MBs smaller in size.
The last few days I have been working with s, but when you have complex views, like List Views populated from a database, this can be a real problem and a waste of resources.
So there are several approaches to efficiently change the content of a view without having to remove and instantiate the view again. My approach is to use the to retrieve the previously instantiated view and modify/use it as you want without having to delete/create a new view each time you want to update some value.
Imagine for example that you have 100 pages with 100 1 - Your solution not only works like a charm I ran in exactly the problem you described here when I had to update pages which contained a tabs with listviews, textviews and images. After hours of frustration while trying all the above solutions to overcome this problem and also trying many solutions on other similar questions like this, this and this which all FAILED with me to solve this problem and to make the (); pager Items.add(new Pager Item("Fragment1", new My Fragment1())); pager Items.add(new Pager Item("Fragment2", new My Fragment2())); m Pager Pager Items(pager Items); m Pager Adapter.notify Data Set Changed(); This is the only solution worked for me too.
My case is not updating the fragment, but removing or adding fragments dynamically.