标签:android 屏幕分辨率 displaymetrics display
Display d=getWindowManager().getDefaultDisplay(); int w=d.getWidth(); int h=d.getHeight();
DisplayMetrics metrics=new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); int w1=metrics.widthPixels; int h1=metrics.heightPixels;
标签:android 屏幕分辨率 displaymetrics display
原文地址:http://blog.csdn.net/u010142437/article/details/38894259