File was renamed from VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SupervisoryBottomAdapter.java |
| | |
| | | |
| | | import cn.com.basic.face.discern.query.item.FacePhotoItem; |
| | | import cn.com.basic.face.discern.query.item.CheckInQueryItem; |
| | | |
| | | /** |
| | | * Created by zhangbo on 2017/2/15. |
| | | */ |
| | | |
| | | public class SupervisoryBottomAdapter extends EasyRecyclerViewAdapter { |
| | | public class SupervisoryBottomListViewAdapter extends EasyRecyclerViewAdapter { |
| | | private int TYPE_1 = 0,TYPE_2 = 1; |
| | | private int type; |
| | | private Context context; |
| | | private List list; |
| | | public SupervisoryBottomAdapter(Context context) { |
| | | public SupervisoryBottomListViewAdapter(Context context) { |
| | | this.context = context; |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public int getRecycleViewItemType(int position) { |
| | | |
| | | type = position%2; |
| | | switch (type){ |
| | | case 0: |
| | |
| | | } |
| | | |
| | | /** |
| | | * 第一列注册 |
| | | * @param holder |
| | | * @param posistion |
| | | * 访客->人员注册 |
| | | */ |
| | | private void RegisterViewHolder(EasyRecyclerViewHolder holder,int posistion){ |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 第二列用户情况 |
| | | * @param holder |
| | | * @param posistion |
| | | * 访客->来访登记 |
| | | */ |
| | | private void UserViewHolder(EasyRecyclerViewHolder holder,int posistion){ |
| | | |
| | | RelativeLayout mLayout = holder.findViewById(R.id.item_user_base); |
| | | RelativeLayout mLayout = holder.findViewById(R.id.fragment_supervisory_bottom_visitor_cell_relative_layout); |
| | | ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams(); |
| | | layoutParams.height = WindowsUtil.dip2px(context, 127); |
| | | layoutParams.width = WindowsUtil.dip2px(context, 104); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | public void setRowType(int i) { |
| | | |
| | | } |
| | | } |