Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending FragmentStatePagerAdapter #7

Open
rnevet opened this issue Feb 24, 2017 · 0 comments
Open

Extending FragmentStatePagerAdapter #7

rnevet opened this issue Feb 24, 2017 · 0 comments
Assignees

Comments

@rnevet
Copy link
Owner

rnevet commented Feb 24, 2017

FragmentStatePagerAdapter manages an internal reference to it's Fragments when extending it you shouldn't create an additional SparseArray (as in ObjectAtPositionPagerAdapter) instead implement the ObjectAtPositionInterface and in the getObjectAtPosition return super.instantiateItem().

Todo this can be better handled inside WrapContentViewPager.

@rnevet rnevet self-assigned this Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant