Android 获取屏幕分辨率
作者:互联网
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
Log.e(TAG, "displayMetrics.widthPixels = "+(displayMetrics.widthPixels)+", displayMetrics.heightPixels = "+(displayMetrics.heightPixels) );
标签:getDefaultDisplay,Log,分辨率,DisplayMetrics,widthPixels,heightPixels,displayMetrics 来源: https://blog.csdn.net/Redmoon955331/article/details/122781913