In android there are a lot of totally different implementations for MVP. Most of them favor to make use of the Exercise or Fragment because the view, a number of would make them presenters, and even much less, would separate the Exercise or Fragment from the MVP, and have the lessons associated to Mannequin, View, and Presenter reside contained in the Exercise or Fragment class.
The primary 2 choices appear to adapt the Android framework into turning into MVP, however the third possibility if utilized appropriately is creating the three layers contained in the Android framework.
In Andorid-MVP the view is nearly at all times really useful to be a passive view, and the Presenter as a middle-man between the mannequin and the view. So having both be an Exercise or Fragment, appears to present them extra accountability. However if MVP is inside an Exercise or a Fragment, all three layers would want to speak with the Exercise or Fragment to get entry to the system (get context, get sources, navigate, or set off occasions based mostly on life-cycle occasions).
Each have professionals and cons, however which might adhere extra to the foundations of MVP?