标签:
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
String str = "宽:" + metrics.widthPixels + " 长:" + metrics.heightPixels;
标签:
原文地址:http://www.cnblogs.com/laishenghao/p/5221500.html