获取屏幕宽高 Log.d("view" , "width:" +display.getWidth());
?
DisplayMetrics displayMetrics = getResources().getDisplayMetrics();Log.d("view" , "height" +displayMetrics.heightPixels); Log.d("view" , "width" +displayMetrics.widthPixels);