WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
int width = wm.getDefaultDisplay().getWidth();
int height = wm.getDefaultDisplay().getHeight();
获取手机宽度
猜你喜欢
转载自blog.csdn.net/yongwoozzang/article/details/83305994
今日推荐
周排行