I'm developing an Android application using the MVP pattern which uses Firebase Services and Firebase Authentication.
In the authentication module, I have three fragments(views) - a) Intro Screen fragment, b) Sign In Fragment and c) Sign Up Fragment. Each fragment has its own presenter.
When the user clicks the Sign-In button in the intro screen, how do I call the SignIn Fragment and instantiate its presenter and model?
As per the Android Architecture examples - https://github.com/googlesamples/android-architecture, the fragment(view) and presenter are instantiated in the activity but the examples do not show how to handle multiple fragments in one authentication activity.
I found a similar question-(Implementing MVP on a single activity with two (or multiple) fragments) on stack overflow but could not find a satisfactory answer.
I am new to Android MVP so please help me, Thanks.