| | |
| | | nameTv.setText(item.getName());
|
| | | }
|
| | |
|
| | |
|
| | | ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams();
|
| | | mLayout.setLayoutParams(layoutParams);
|
| | | }
|
| | |
| | |
|
| | | mToNameTv = (TextView) mTvName.findViewById(R.id.item_visitor_to_name);
|
| | | mToDepartmentTv = (TextView) mTvName.findViewById(R.id.item_visitor_to_department);
|
| | | mTvDepartment = holder.findViewById(R.id.item_visitor_to_department);
|
| | |
|
| | | Object data = getList().get(posistion);
|
| | | if (data instanceof VisitorQueryItem) {
|
| | | VisitorQueryItem item = (VisitorQueryItem) data;
|
| | | mToNameTv.setText(item.getName());
|
| | | mTvDepartment.setText(item.getDeptName());
|
| | | }
|
| | |
|
| | | RelativeLayout itemVisitorToRl = (RelativeLayout) holder.findViewById(R.id.item_visitor_to_rl);
|
| | |
| | | }
|
| | | });
|
| | |
|
| | | mTvDepartment = holder.findViewById(R.id.item_visitor_to_department);
|
| | |
|
| | | if (mTypeColor == TYPE_DEPARTMENT) {
|
| | | mTvName.setTextColor(mContext.getResources().getColor(R.color.colorText_b));
|
| | | mTvDepartment.setTextColor(mContext.getResources().getColor(R.color.colorText_5));
|