| | |
| | |
|
| | | public class CheckInLeftListView extends EasyRecyclerView {
|
| | |
|
| | | CheckInLeftListViewAdapter mAdapter;
|
| | | private CheckInLeftListViewAdapter mAdapter;
|
| | | private List list = new ArrayList();
|
| | |
|
| | | public void setAdapter(Context context) {
|
| | |
| | | }
|
| | |
|
| | | public void show(List list, boolean isVisitorList) {
|
| | | mAdapter.setRowType(isVisitorList? Constant.CheckIn.VISITOR_ROW:Constant.CheckIn.INTERVIEWEE_ROW);
|
| | | refresh();
|
| | | }
|
| | |
|
| | | public void refresh() {
|
| | | this.list.clear();
|
| | | mAdapter.setRowType(isVisitorList? Constant.VISITOR_ROW:Constant.INTERVIEWEE_ROW);
|
| | | this.list.addAll(list);
|
| | | mAdapter.setList(this.list);
|
| | | this.setAdapter(mAdapter);
|