@@ -0,0 +1,1241 @@
+package com.szmajnta.andrzej.clearmvc.base;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0Aimport butterknife.ButterKnife;%0A%0A/**%0A * Created by andrzej on 11.02.2016.%0A */%0Apublic abstract class BaseMvpFragment%3CP extends Presenter%3E extends Fragment implements com.szmajnta.andrzej.clearmvc.base.View%7B%0A%0A    protected P presenter;%0A%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container,%0A                             Bundle savedInstanceState) %7B%0A        View view = inflater.inflate(getDefaultLayout(), container, false);%0A        presenter = createPresenter();%0A        presenter.bindView(this);%0A        presenter.onCreate();%0A        ButterKnife.bind(this, view);%0A        return view;%0A    %7D%0A%0A    @Override%0A    public void onResume() %7B%0A        super.onResume();%0A        presenter.onResume();%0A    %7D%0A%0A    @Override%0A    public void onStop() %7B%0A        super.onStop();%0A        presenter.onStop();%0A    %7D%0A%0A    @Override%0A    public void onDestroy() %7B%0A        super.onDestroy();%0A        presenter.onDestroy();%0A    %7D%0A%0A    protected abstract int getDefaultLayout();%0A%0A    protected abstract P createPresenter();%0A%7D%0A

Add BaseFragment