Android获取屏幕高宽
(1)int width,height;
??WindowManager windowManager = getWindowManager();
??Display display = windowManager.getDefaultDisplay();
??screenWidth = display.getWidth();
??screenHeight = display.getHeight();
?(2)int width,height;
??????? DisplayMetrics displayMetrics = new DisplayMetrics();??
??????? this.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);???
??????? height = displayMetrics.heightPixels;???
??????? width = displayMetrics.widthPixels;