package com.cheng.animationstudy.customview.bagrefresh; import android.support.v7.widget.RecyclerView; import com.cheng.animationstudy.R; import cn.bingoogolapple.androidcommon.adapter.BGARecyclerViewAdapter; import cn.bingoogolapple.androidcommon.adapter.BGAViewHolderHelper; /** * 作者:王浩 邮件:bingoogolapple@gmail.com * 创建时间:15/5/22 16:31 * 描述: */ public class NormalRecyclerViewAdapter extends BGARecyclerViewAdapter<RefreshModel> { public NormalRecyclerViewAdapter(RecyclerView recyclerView) { super(recyclerView, R.layout.item_bganormalrecyclerview); } @Override public void setItemChildListener(BGAViewHolderHelper viewHolderHelper) { viewHolderHelper.setItemChildClickListener(R.id.tv_item_normal_delete); viewHolderHelper.setItemChildLongClickListener(R.id.tv_item_normal_delete); } @Override public void fillData(BGAViewHolderHelper viewHolderHelper, int position, RefreshModel model) { viewHolderHelper.setText(R.id.tv_item_normal_title, model.title).setText(R.id.tv_item_normal_detail, model.detail); } }