摘要:
/** * 获取屏幕分辨率 */ private void getResolution() { // TODO Auto-generated method stub Display display = getWindowManager().getDefaultDisplay(); DisplayMetrics displayMetrics = new DisplayMetrics(); display.getMetrics(displayMetrics); float density = displayMetrics.density; //得到密度 float width = ... 阅读全文