// Path: app/src/main/java/com/team/zhuoke/masterhelper/utils/adapter/CommonHeaderAdapter.java
// public abstract class CommonHeaderAdapter<H, N> extends BaseAdapter<H, N, Object> {
//     private static final String TAG = "CommonHeaderAdapter";
// 
//     public CommonHeaderAdapter(List<N> ns) {
//         super(ns);
//     }
// 
//     @Override
//     protected BaseHolder onCreateFooterVH(ViewGroup parent, int viewType) {
//         return null;
//     }
// }


import android.view.ViewGroup;
import com.team.zhuoke.masterhelper.R;
import com.team.zhuoke.masterhelper.utils.adapter.CommonHeaderAdapter;
import java.util.ArrayList;
import java.util.List;
        mModel.getVData(dataList -> {
            mAdapter.setNormal(dataList, false);
            mAdapter.notifyDataSetChanged();
        });

        mModel.getHData(new CallBack<List<HData>>() {
            @Override
            public void getSuccess(List<List<HData>> dataList) {
                mAdapter.setHeader(dataList, false);
                mAdapter.notifyDataSetChanged();
            }
        });
        mView.setTitle("主页");
        mView.setAdapter(mAdapter);
    }

    public static class HData {
        public int resImg = R.drawable.photo;

    }

    public static class VData {
        public int resImg = R.drawable.photo;

    }

    public interface CallBack<T> {
        void getSuccess(List<T> dataList);
    }

// Path: app/src/main/java/com/team/zhuoke/masterhelper/utils/adapter/CommonHeaderAdapter.java
// public abstract class CommonHeaderAdapter<H, N> extends BaseAdapter<H, N, Object> {
//     private static final String TAG = "CommonHeaderAdapter";
// 
//     public CommonHeaderAdapter(List<N> ns) {
//         super(ns);
//     }
// 
//     @Override
//     protected BaseHolder onCreateFooterVH(ViewGroup parent, int viewType) {
//         return null;
//     }
// }


// Path: app/src/main/java/com/team/zhuoke/masterhelper/fragment/main/MainFragmentPresenter.java
import android.view.ViewGroup;
import com.team.zhuoke.masterhelper.R;
import com.team.zhuoke.masterhelper.utils.adapter.CommonHeaderAdapter;
import java.util.ArrayList;
import java.util.List;

        mModel.getVData(dataList -> {
            mAdapter.setNormal(dataList, false);
            mAdapter.notifyDataSetChanged();
        });

        mModel.getHData(new CallBack<List<HData>>() {
            @Override
            public void getSuccess(List<List<HData>> dataList) {
                mAdapter.setHeader(dataList, false);
                mAdapter.notifyDataSetChanged();
            }
        });
        mView.setTitle("主页");
        mView.setAdapter(mAdapter);
    }

    public static class HData {
        public int resImg = R.drawable.photo;

    }

    public static class VData {
        public int resImg = R.drawable.photo;

    }

    public interface CallBack<T> {
        void getSuccess(List<T> dataList);
    }

    private class MainAdapter extends CommonHeaderAdapter<List<HData>, VData> {