FragmentStatePagerIssueExample icon indicating copy to clipboard operation
FragmentStatePagerIssueExample copied to clipboard

Example of an issue around state restoration for fragments in a FragmentStatePagerAdapter

Results 3 FragmentStatePagerIssueExample issues
Sort by recently updated
recently updated
newest added

In `instantiateItem`, we need to add additional check to make sure the fragment retrieved from `mFragments` is correct. ``` String fragmentTag = getTag(position); if (mFragments.size() > position) { Fragment f...

Hi, I found your blog post while searching for my own bug with `FragmentStatePagerAdapter`. So I'll share my experience... You can test this bug on support library `23.1.1`: - Put...

Hi I found your blog from Google, but I didn't really like the idea of maintaining a separate `FragmentStatePagerAdapter`. A simpler solution is to use `FragmentPagerAdapter` instead, and override the...