ViewPresenter
public class ChatListView extends ListView
implements ChatListScreen.View {
@Inject ChatListScreen.Presenter presenter;
!
public ChatListView(Context context, AttributeSet attrs) {
super(context, attrs);
Mortar.inject(context, this);
}
!
@Override protected void onAttachedToWindow() {
super.onAttachedToWindow();
presenter.takeView(this);
}
}