获取android设备屏幕大小和密度
Display display = getActivity().getWindowManager().getDefaultDisplay();
int width = display.getWidth();
int height = display.getHeight();
Logger.d(" width * height = " + width + " * " + height);
DisplayMetrics metric = new DisplayMetrics();
getActivity().getWindowManager().getDefaultDisplay().getMetrics(metric);
int densityDpi = metric.densityDpi;
Logger.d(" densityDpi = "+densityDpi);