Android 获取屏幕的分辨率

xiaoxiao2021-02-28  20

DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); int width = dm.widthPixels; int heightPixels = dm.heightPixels; Log.e("宽度",""+width); Log.e("高度",""+heightPixels);
转载请注明原文地址: https://www.6miu.com/read-2400133.html

最新回复(0)