Resources resources = this.getResources();
DisplayMetrics dm = resources.getDisplayMetrics();
dm.widthPixels// WIDTH
dm.heightPixels//HEIGHT
Resources resources = this.getResources();
DisplayMetrics dm = resources.getDisplayMetrics();
dm.widthPixels// WIDTH
dm.heightPixels//HEIGHT
本文标题:Android 获取当前手机屏幕宽度Width,高度Height
本文链接:https://www.haomeiwen.com/subject/ryizfxtx.html
网友评论