DisplayMetrics packageMetrics = getResources().getDisplayMetrics();
int windowWidth = packageMetrics.widthPixels;
int windowHeight = packageMetrics.heightPixels;
Android获取屏幕尺寸
最新推荐文章于 2022-10-02 09:30:23 发布
DisplayMetrics packageMetrics = getResources().getDisplayMetrics();
int windowWidth = packageMetrics.widthPixels;
int windowHeight = packageMetrics.heightPixels;