Sorry about my English grammar. My question is little bit stupid but I want to understand clearly about how MVP pattern apply in real application.
I'm developing an android project. I want to apply MVP pattern to my project. I refer to this demo :
https://github.com/antoniolg/androidmvp
I'm very excited with this pattern. But in this demo project, I see each activity (a view) , we always have a presenter and an interactor (model) and something else. So in project which have many screen :
How should I manage the presenter and model.
With each activity (example LoginActivity), I create a "login" package and put all presenter and model into it. Is it ok ?
Can someone give me a small application source code using MVP pattern. (not a demo project).
Few advice and suggestions from my end:
1: Use proper folder structure for your files.
2: Create app's Application class, Initialise global 3rd party libraries instances in it and create Application class SingtoneInstance to access them.
3: Separation of Views and Business Logic layers for following along with listeners:
4: Some standardised and common practices : Using proven and stable libraries and Bridge them with your application Business-layer and View-layer. Few libraries like