Android获取屏幕尺寸
程序员文章站
2022-03-19 16:41:26
...
DisplayMetrics packageMetrics = getResources().getDisplayMetrics();
int windowWidth = packageMetrics.widthPixels;
int windowHeight = packageMetrics.heightPixels;
上一篇: windows7部署hitchhiker