xuxiuxi
2017-04-05 771a848eea904046c68ffad084b5d68eadc9ebee
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInLeftListViewAdapter.java
@@ -19,10 +19,6 @@
import cn.com.basic.face.discern.query.item.CheckInQueryItem;
/**
 * Created by Sinoe on 2017/2/23.
 */
public class CheckInLeftListViewAdapter extends EasyRecyclerViewAdapter {
    private Context mContext;
    private int type, mTypeColor;
@@ -50,10 +46,10 @@
    @Override
    public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
        switch (type) {
            case Constant.VISITOR_ROW:
            case Constant.CheckIn.VISITOR_ROW:
                visitorCellHolder(viewHolder, position);
                break;
            case Constant.INTERVIEWEE_ROW:
            case Constant.CheckIn.INTERVIEWEE_ROW:
                intervieweeCellHolder(viewHolder, position);
                break;
        }
@@ -62,9 +58,9 @@
    @Override
    public int getRecycleViewItemType(int position) {
        switch (type) {
            case Constant.VISITOR_ROW:
            case Constant.CheckIn.VISITOR_ROW:
                return 0;
            case Constant.INTERVIEWEE_ROW:
            case Constant.CheckIn.INTERVIEWEE_ROW:
                return 1;
            default:
                return 1;
@@ -152,11 +148,11 @@
    }
    public void setVisitorRow() {
        this.type = Constant.VISITOR_ROW;
        this.type = Constant.CheckIn.VISITOR_ROW;
    }
    public void setIntervieweeRow() {
        this.type = Constant.INTERVIEWEE_ROW;
        this.type = Constant.CheckIn.INTERVIEWEE_ROW;
    }
    public void setRowType(int type) {