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

[todo-mvp] Pager Sample #207

Open
bytehala opened this issue Oct 6, 2016 · 1 comment
Open

[todo-mvp] Pager Sample #207

bytehala opened this issue Oct 6, 2016 · 1 comment
Labels

Comments

@bytehala
Copy link

bytehala commented Oct 6, 2016

How would you go about creating a View-Presenter pair using FragmentPagerAdapter? In the case of a TODO App, what if I wanted to create a screen with 3 Tabs - Active, Completed, and... errr... Something.

I tried creating a View-Presenter pair for the page Fragments, but presenter.start() crashes on rotate because presenter is null. The page Fragment's onResume() is called before the presenter was initialized in the PagerAdapter constructor.

I'm guessing that instead of creating the View-Presenter pairs for the page Fragments (which are sub-views), it should only be done for the Activity content Fragment (the "main" view). I might be wrong though, so I need guidance.

@GameplayJDK
Copy link

I had that same problem. The only resource I've found on this was this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants