WindowManager winManage = getWindowManager() ;
Display winDisplay = winManage.getDefaultDisplay() ;
int winHeight = winDisplay.getHeight() ;
int winWeight = winDisplay.getWidth() ;
Log.e("高度 高度 高度 高度 高度 ",winHeight+"");
Log.e("宽度 宽度 宽度 宽度 宽度 ",winWeight+"");
Android 获取屏幕宽度和高度
猜你喜欢
转载自blog.csdn.net/qq_41630695/article/details/109243990
今日推荐
周排行