xuxiuxi
2017-04-13 cfccff1a72a780001690b02c3baccfb771a90e32


git-svn-id: http://192.168.1.226/svn/proxy@442 454eff88-639b-444f-9e54-f578c98de674
1个文件已修改
16 ■■■■ 已修改文件
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java
@@ -78,7 +78,13 @@
            if (data instanceof SurveillanceQueryItem) {
                final SurveillanceQueryItem item = (SurveillanceQueryItem)data;
                fragment_home_bottom_register_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE +item.getImagePath()));
                if (item.getImagePath() != null && !item.getImagePath().equals("")) {
                    fragment_home_bottom_register_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE +item.getImagePath()));
                } else {
                    fragment_home_bottom_register_cell_photo.setImageResource(R.drawable.u45);
                }
                fragment_home_bottom_register_cell_to_register.setOnClickListener(new View.OnClickListener(){
                    @Override
                    public void onClick(View view) {
@@ -104,7 +110,6 @@
            TextView fragment_home_bottom_visitor_cell_warning = (TextView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_warning);
            TextView fragment_home_bottom_visitor_cell_name = (TextView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_name);
            TextView fragment_home_bottom_visitor_cell_status = (TextView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_status);
            //statusTv.setText("");
            Object data = this.getItem(position);
            if (data instanceof FacePhotoItem) {
@@ -141,7 +146,12 @@
            if (data instanceof SurveillanceQueryItem) {
                final SurveillanceQueryItem item = (SurveillanceQueryItem)data;
                fragment_home_bottom_visitor_cell_name.setText(item.getUsername());
                fragment_home_bottom_visitor_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE +item.getImagePath()));
                if (item.getImagePath() != null && !item.getImagePath().equals("")) {
                    fragment_home_bottom_visitor_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE +item.getImagePath()));
                } else {
                    fragment_home_bottom_visitor_cell_photo.setImageResource(R.drawable.u45);
                }
                if (1==1) {
                    fragment_home_bottom_visitor_cell_status.setBackground(context.getDrawable(R.drawable.rectangle_textview));