1.获取屏幕宽高
方法1:
int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); // 屏幕宽(像素,如:480px)
int screenHeight = getWindowManager().getDefaultDisplay().getHeight(); // 屏幕高(像素,如:800p)
Log.e(TAG + getDefaultDisplay, screenWidth= + screenWidth + ; screenHeight= + screenHeight);
方法2:
D