| | |
| | | public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { |
| | | selectIdentity = ruleListName.get(position); |
| | | emptyPersonDetail(); |
| | | // if (!"全部".equals(ruleListName.get(position))) { |
| | | // |
| | | // } |
| | | loadTask(LOAD_FROM_ZERO); |
| | | } |
| | | |
| | |
| | | View checked = vh.getView(com.basic.security.utils.RUtils.R_id_checked); |
| | | checkedList.add(checked); |
| | | View row = vh.getView(com.basic.security.utils.RUtils.R_id_row); |
| | | // row.setOnClickListener(new View.OnClickListener() { |
| | | // @Override |
| | | // public void onClick(View v) { |
| | | // loadPersonByID(position); |
| | | // checked.setVisibility(View.VISIBLE); |
| | | // } |
| | | // }); |
| | | TextView device_name = vh.getView(com.basic.security.utils.RUtils.R_id_device_name); |
| | | TextView name = vh.getView(com.basic.security.utils.RUtils.R_id_name); |
| | | TextView id_number = vh.getView(com.basic.security.utils.RUtils.R_id_id_number); |
| | |
| | | }; |
| | | visit_record_list.setAdapter(adapter); |
| | | visit_record_list.setOnItemClickListener((parent, view, position, id) -> { |
| | | System.out.println("VisitListFragment.init " + parent + " " + view); |
| | | for (View checked : checkedList) { |
| | | checked.setVisibility(View.GONE); |
| | | } |
| | |
| | | synchronized (this) { |
| | | if (loading.getVisibility() == View.VISIBLE) { |
| | | return; |
| | | } else { |
| | | // loading.setVisibility(View.VISIBLE); |
| | | } |
| | | } |
| | | List<ModelAdapter> result = new ArrayList<>(); |