Android 全面屏,水滴屏 获取真实宽高

		WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        Point point = new Point();
        if (wm != null) {
            wm.getDefaultDisplay().getRealSize(point);
        }

        LogUtils.d("全面屏实际大小:" + point.toString());
发布了36 篇原创文章 · 获赞 11 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_18824545/article/details/102967335