a
554325746@qq.com
2019-12-25 603cb36a5123e46656b06a5deb8d7ac7ff81307f
app/src/main/java/com/basic/security/utils/LayoutUtil.java
@@ -65,7 +65,7 @@
                //this may not be 100% accurate, but it's all we've got
                realWidth = display.getWidth();
                realHeight = display.getHeight();
                System.out.println("LayoutUtil.getRealHeight" + e.getMessage());
                System1.out.println("LayoutUtil.getRealHeight" + e.getMessage());
            }
        } else {
            //This should be close, as lower API devices should not have window navigation bars
@@ -100,7 +100,7 @@
                //this may not be 100% accurate, but it's all we've got
                realWidth = display.getWidth();
                realHeight = display.getHeight();
                System.out.println("LayoutUtil.getRealHeight" + e.getMessage());
                System1.out.println("LayoutUtil.getRealHeight" + e.getMessage());
            }
        } else {
            //This should be close, as lower API devices should not have window navigation bars
@@ -131,7 +131,7 @@
                //this may not be 100% accurate, but it's all we've got
                realWidth = display.getWidth();
                realHeight = display.getHeight();
                System.out.println("LayoutUtil.getRealHeight" + e.getMessage());
                System1.out.println("LayoutUtil.getRealHeight" + e.getMessage());
            }
        } else {
            //This should be close, as lower API devices should not have window navigation bars
@@ -143,7 +143,7 @@
    public static int getHeightPixel(int height) {
        int toHeight = (int) (height * getRealHeight() * 1.0 / BaseApplication.getApplication().getResources().getDimension(RUtils.R_dimen_w800));
//        System.out.println("height=" + height + ", to height=" + toHeight);
//        System1.out.println("height=" + height + ", to height=" + toHeight);
        return toHeight;
    }
@@ -228,7 +228,7 @@
                try {
                    if (view instanceof TextView) {
                        int fontSize = (Integer) style.get(Style.fontSize);
                        System.out.println("LayoutUtil.applyStyle fontSize=" + fontSize);
                        System1.out.println("LayoutUtil.applyStyle fontSize=" + fontSize);
//                        if (fontSize == 21) {
////                            float fontSize1 = BaseApplication.getApplication().activity.fragment_face_detail.sign_up_rule_field_label.getTextSize();
////                            ((TextView) view).setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize1);