| | |
| | |
|
| | | RelativeLayout mLayout = holder.findViewById(R.id.fragment_home_bottom_register_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);
|
| | |
|
| | | final Object data = this.getItem(position);
|
| | |
| | | @Override
|
| | | public void onClick(View view) {
|
| | | MainActivity.selectPage(1);
|
| | | RegisterFragment.getInstance().setRegisterInfo(getVo(item));
|
| | | RegisterFragment.getInstance().setRegisterInfo(getVo(item));//java.lang.OutOfMemoryError: Failed to allocate a 25338980 byte allocation with 15827186 free bytes and 15MB until OOM
|
| | | if(item.getBitmap() != null) {
|
| | | RegisterFragment.getInstance().setChoosePhoto(item.getBitmap());
|
| | | RegisterFragment.getInstance().setSurveillanceQueryItem(item);
|
| | |
| | |
|
| | | 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);
|
| | |
| | | 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);
|