WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Point point = new Point();
if (wm != null) {
wm.getDefaultDisplay().getRealSize(point);
}
LogUtils.d("全面屏实际大小:" + point.toString());
Android 全面屏,水滴屏 获取真实宽高
猜你喜欢
转载自blog.csdn.net/qq_18824545/article/details/102967335
今日推荐
周排行