package com.oo.eye.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.app.baselibrary.recycler.adapter.BaseRecyclerViewAdapter;
import com.app.baselibrary.recycler.itemholder.ItemViewHolder;
import com.oo.eye.R;
import com.oo.eye.bean.ChartsBean;

import java.util.List;

/**
 * Date : 2018/8/28.
 * Author:  cxh
 */

public class TestListAdapter extends BaseRecyclerViewAdapter<ChartsBean,ItemViewHolder>{
    private final LayoutInflater mInflater;
    public TestListAdapter(List<ChartsBean> list, Context context) {
        super(list, context);
        mInflater = LayoutInflater.from(mContext);
    }

    @Override
    public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ItemViewHolder(mInflater.inflate(R.layout.item_testlist, parent, false));
    }

    @Override
    public void onBindViewHolder(ItemViewHolder holder, int position) {

    }


    @Override
    public int getItemCount() {
        return 10;
    }
}
