| | |
| | | |
| | | import com.bsk.zhangbo.demoforbsk.R; |
| | | import com.bsk.zhangbo.demoforbsk.ui.activity.MainActivity; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment; |
| | | import com.bsk.zhangbo.demoforbsk.util.WindowsUtil; |
| | | import com.camnter.easyrecyclerview.adapter.EasyRecyclerViewAdapter; |
| | | import com.camnter.easyrecyclerview.holder.EasyRecyclerViewHolder; |
| | |
| | | TextView statusTv = (TextView) mLayout.findViewById(R.id.item_user_status); |
| | | //statusTv.setText(""); |
| | | |
| | | |
| | | Object data = this.getItem(posistion); |
| | | if (data instanceof FacePhotoItem) { |
| | | FacePhotoItem item = (FacePhotoItem) data; |
| | | final FacePhotoItem item = (FacePhotoItem) data; |
| | | |
| | | if (item.getWarning().length() > 0 && "来访登记".equals(item.getStatus())) { |
| | | //warningTv.setText("警告"); |
| | | warningTv.setVisibility(View.VISIBLE); |
| | | } else { |
| | | warningTv.setVisibility(View.GONE); |
| | | } |
| | | |
| | | |
| | | nameTv.setText(item.getName()); |
| | |
| | | @Override |
| | | public void onClick(View view) { |
| | | MainActivity.selectPage(2); |
| | | VisitorRegisterFragment.getInstance().visitorCheckIn(item); |
| | | } |
| | | }); |
| | | } else { |
| | | statusTv.setBackground(null); |
| | | statusTv.setOnClickListener(null); |
| | | } |
| | | } |
| | | |