// Path: library/src/main/java/com/dreamliner/rvhelper/adapter/BaseAdapter.java
// public abstract class BaseAdapter<T, VH extends BaseViewHolder> extends BaseNormalAdapter<T, VH> {
// 
//     public BaseAdapter() {
//         super();
//     }
// 
//     public BaseAdapter(ItemClickListener itemClickListener) {
//         super();
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseAdapter(ItemLongListener itemLongListener) {
//         super();
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseAdapter(ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super();
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
//         if (!(holder instanceof FooterViewHolder)) {
//             bindView((VH) holder, position);
//         }
//     }
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemClickListener.java
// public interface ItemClickListener {
//     public void onItemClick(View view, int position);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/viewholder/BaseViewHolder.java
// public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     private ItemClickListener mItemClickListener;
//     private ItemLongListener mItemLongListener;
// 
//     public BaseViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (null != mItemClickListener) {
//             int position = getAdapterPosition();
//             if (position != RecyclerView.NO_POSITION) {
//                 mItemClickListener.onItemClick(v, position);
//             }
//         }
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (null != mItemLongListener) {
//             int position = getAdapterPosition();
//             return position == RecyclerView.NO_POSITION || mItemLongListener.onLongClick(v, position);
//         }
//         return false;
//     }
// }


import android.annotation.SuppressLint;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.dreamliner.lib.rvhelper.sample.R;
import com.dreamliner.rvhelper.adapter.BaseAdapter;
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
import butterknife.BindView;
import butterknife.ButterKnife;
package com.dreamliner.lib.rvhelper.sample.ui.adapter;




/**
 * @author chenzj
 * @Title: TypeAdapter
 * @Description: 类的描述 -
 * @date 2016/10/11 14:21
 * @email admin@chenzhongjin.cn
 */
public class TypeAdapter extends BaseAdapter<String, TypeAdapter.ViewHolder> {

    public TypeAdapter(ItemClickListener itemClickListener) {
        super(itemClickListener);
    }

    @Override
    public ViewHolder createCustomViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(getView(R.layout.item_type, parent), getItemClickListener());
    }

    @SuppressLint("SetTextI18n")
    @Override
    protected void bindView(ViewHolder holder, int position) {
        String itemData = getItem(position);
        holder.mTypeTv.setText("" + itemData);
    }

// Path: library/src/main/java/com/dreamliner/rvhelper/adapter/BaseAdapter.java
// public abstract class BaseAdapter<T, VH extends BaseViewHolder> extends BaseNormalAdapter<T, VH> {
// 
//     public BaseAdapter() {
//         super();
//     }
// 
//     public BaseAdapter(ItemClickListener itemClickListener) {
//         super();
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseAdapter(ItemLongListener itemLongListener) {
//         super();
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseAdapter(ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super();
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
//         if (!(holder instanceof FooterViewHolder)) {
//             bindView((VH) holder, position);
//         }
//     }
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemClickListener.java
// public interface ItemClickListener {
//     public void onItemClick(View view, int position);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/viewholder/BaseViewHolder.java
// public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     private ItemClickListener mItemClickListener;
//     private ItemLongListener mItemLongListener;
// 
//     public BaseViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (null != mItemClickListener) {
//             int position = getAdapterPosition();
//             if (position != RecyclerView.NO_POSITION) {
//                 mItemClickListener.onItemClick(v, position);
//             }
//         }
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (null != mItemLongListener) {
//             int position = getAdapterPosition();
//             return position == RecyclerView.NO_POSITION || mItemLongListener.onLongClick(v, position);
//         }
//         return false;
//     }
// }


// Path: demo/src/main/java/com/dreamliner/lib/rvhelper/sample/ui/adapter/TypeAdapter.java
import android.annotation.SuppressLint;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.dreamliner.lib.rvhelper.sample.R;
import com.dreamliner.rvhelper.adapter.BaseAdapter;
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
import butterknife.BindView;
import butterknife.ButterKnife;

package com.dreamliner.lib.rvhelper.sample.ui.adapter;




/**
 * @author chenzj
 * @Title: TypeAdapter
 * @Description: 类的描述 -
 * @date 2016/10/11 14:21
 * @email admin@chenzhongjin.cn
 */
public class TypeAdapter extends BaseAdapter<String, TypeAdapter.ViewHolder> {

    public TypeAdapter(ItemClickListener itemClickListener) {
        super(itemClickListener);
    }

    @Override
    public ViewHolder createCustomViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(getView(R.layout.item_type, parent), getItemClickListener());
    }

    @SuppressLint("SetTextI18n")
    @Override
    protected void bindView(ViewHolder holder, int position) {
        String itemData = getItem(position);
        holder.mTypeTv.setText("" + itemData);
    }

    static class ViewHolder extends BaseViewHolder {