标签:
计算屏幕高度,宽度代码(Activity中)
DisplayMetrics outMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(outMetrics); float mScreenHeight = outMetrics.heightPixels;
Android 计算屏幕大小
原文地址:http://www.cnblogs.com/the-owl/p/5779275.html