WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Point point = new Point();
if (wm != null) {
wm.getDefaultDisplay().getRealSize(point);
}
LogUtils.d("全面屏实际大小:" + point.toString());
Android 全面屏,水滴屏 获取真实宽高
最新推荐文章于 2024-09-07 14:45:04 发布