| | |
| | |
|
| | | 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;
|
| | |
| | | @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;
|
| | | }
|
| | |
| | | @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;
|
| | |
| | | }
|
| | |
|
| | | 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) {
|