| | |
| | |
|
| | | RelativeLayout mLayout = holder.findViewById(R.id.fragment_home_bottom_register_cell_relative_layout);
|
| | | ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams();
|
| | | layoutParams.height = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h127dp);//WindowsUtil.dip2px(context, 127);
|
| | | layoutParams.width = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h122dp);//WindowsUtil.dip2px(context, 122);
|
| | | layoutParams.height = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h127dp);
|
| | | layoutParams.width = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h122dp);
|
| | | mLayout.setLayoutParams(layoutParams);
|
| | |
|
| | | final Object data = this.getItem(position);
|
| | |
| | |
|
| | | 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, 122);
|
| | | layoutParams.height = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h127dp);
|
| | | layoutParams.width = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h122dp);
|
| | | mLayout.setLayoutParams(layoutParams);
|
| | |
|
| | | ImageView fragment_home_bottom_visitor_cell_photo = (ImageView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_photo);
|
| | |
| | | @Override
|
| | | public void onClick(View view) {
|
| | | MainActivity.selectPage(Constant.TabType.CHECK_IN);
|
| | | cn.com.basic.face.fragment.CheckInFragment.getInstance().
|
| | | getFragment_check_in_right_visitor_cell()
|
| | | .setVisitorInfo(getVo(item));
|
| | | // cn.com.basic.face.fragment.CheckInFragment.getInstance().
|
| | | // getFragment_check_in_right_visitor_cell()
|
| | | // .setVisitorInfo(getVo(item));
|
| | | if (item.getBitmap() != null && (item.getImagePath() == null || "".equals(item.getImagePath()))) {
|
| | | cn.com.basic.face.fragment.CheckInFragment.getInstance().
|
| | | getFragment_check_in_right_visitor_cell().setPhoto(item.getBitmap());
|
| | |
| | | public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
|
| | | RelativeLayout mLayout = viewHolder.findViewById(R.id.fragment_supervisory_bottom_attendance_cell_relative_layout);
|
| | | ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams();
|
| | | layoutParams.height = WindowsUtil.dip2px(context, 127);
|
| | | layoutParams.width = WindowsUtil.dip2px(context, 122);
|
| | | layoutParams.height = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h127dp);
|
| | | layoutParams.width = (int)MainActivity.getInstance().getResources().getDimension(R.dimen.h122dp);
|
| | | mLayout.setLayoutParams(layoutParams);
|
| | |
|
| | | ImageView fragment_home_bottom_attendance_cell_photo = (ImageView) mLayout.findViewById(R.id.fragment_home_bottom_attendance_cell_photo);
|