xuxiuxi
2017-04-18 851f3674eb5aa96eda84424d99ef11dcd9366e6c
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java
@@ -69,6 +69,8 @@
            ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams();
            layoutParams.height = WindowsUtil.dip2px(context, 127);
            layoutParams.width = WindowsUtil.dip2px(context, 104);
//            layoutParams.height = WindowsUtil.px2dip(context, 480);
//            layoutParams.width = WindowsUtil.px2dip(context, 640);
            mLayout.setLayoutParams(layoutParams);
            final Object data = this.getItem(position);
@@ -82,7 +84,11 @@
                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);
                    if (item.getBitmap() != null) {
                        fragment_home_bottom_register_cell_photo.setImageBitmap(item.getBitmap());
                    } else {
                        fragment_home_bottom_register_cell_photo.setImageResource(R.drawable.u45);
                    }
                }
                fragment_home_bottom_register_cell_to_register.setOnClickListener(new View.OnClickListener(){
@@ -104,6 +110,8 @@
            ViewGroup.LayoutParams layoutParams = mLayout.getLayoutParams();
            layoutParams.height = WindowsUtil.dip2px(context, 127);
            layoutParams.width = WindowsUtil.dip2px(context, 104);
//            layoutParams.height = WindowsUtil.px2dip(context, 480);
//            layoutParams.width = WindowsUtil.px2dip(context, 640);
            mLayout.setLayoutParams(layoutParams);
            ImageView fragment_home_bottom_visitor_cell_photo = (ImageView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_photo);
@@ -150,7 +158,11 @@
                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 (item.getBitmap() != null) {
                        fragment_home_bottom_visitor_cell_photo.setImageBitmap(item.getBitmap());
                    } 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));