From 8081d0d398ce1b2987f810e7e89e7c6fe473b4bc Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 30 三月 2017 14:31:26 +0800
Subject: [PATCH] 

---
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInRightCellAdapter.java |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInRightCellAdapter.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInRightCellAdapter.java
index b58dd74..fe299d8 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInRightCellAdapter.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/CheckInRightCellAdapter.java
@@ -38,6 +38,10 @@
         this.type = type;
     }
 
+    public CheckInRightCellAdapter(Context mContext) {
+        this.mContext = mContext;
+    }
+
     @Override
     public int[] getItemLayouts() {
         return new int[]{R.layout.fragment_check_in_left_visitor_row, R.layout.fragment_check_in_left_interviewee_row};
@@ -46,10 +50,10 @@
     @Override
     public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
         switch (type) {
-            case Constant.VISITOR_CELL:
+            case Constant.VISITOR_ROW:
                 visitorCellHolder(viewHolder, position);
                 break;
-            case Constant.INTERVIEWEE_CELL:
+            case Constant.INTERVIEWEE_ROW:
                 intervieweeCellHolder(viewHolder, position);
                 break;
         }
@@ -58,9 +62,9 @@
     @Override
     public int getRecycleViewItemType(int position) {
         switch (type) {
-            case Constant.VISITOR_CELL:
+            case Constant.VISITOR_ROW:
                 return 0;
-            case Constant.INTERVIEWEE_CELL:
+            case Constant.INTERVIEWEE_ROW:
                 return 1;
             default:
                 return 1;
@@ -147,4 +151,16 @@
         this.mTypeColor = type;
     }
 
+    public void setVisitorRow() {
+        this.type = Constant.VISITOR_ROW;
+    }
+
+    public void setIntervieweeRow() {
+        this.type = Constant.INTERVIEWEE_ROW;
+    }
+
+    public void setRowType(int type) {
+        this.type = type;
+    }
+
 }

--
Gitblit v1.8.0