@@ -0,0 +1,1117 @@
+package org.pustule.fanfarepustule.base;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.LayoutRes;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0Aimport butterknife.ButterKnife;%0Aimport butterknife.Unbinder;%0A%0A/**%0A * Created by Paul Mougin on 27/02/2017.%0A */%0A%0Apublic abstract class BaseFragment extends Fragment %7B%0A%0A    protected boolean isViewInflated = false;%0A    private Unbinder unbinder;%0A%0A    @Nullable%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) %7B%0A        final View root = inflater.inflate(getLayoutRes(), container, false);%0A%0A        unbinder = ButterKnife.bind(this, root);%0A        bindView(root);%0A%0A        return root;%0A    %7D%0A%0A    @Override public void onDestroyView() %7B%0A        super.onDestroyView();%0A        unbinder.unbind();%0A    %7D%0A%0A    @LayoutRes%0A    protected abstract int getLayoutRes();%0A%0A    protected void bindView(View root) %7B%0A        isViewInflated = true;%0A    %7D%0A%7D%0A

Add BaseFragment