标签:
转自:http://blog.csdn.net/ypq374563453/article/details/22819947
获取屏幕宽高4.0中直接使用getwidth()和getheight()已经过时使用point替代用法是
//屏幕宽高
Display display = getWindowManager().getDefaultDisplay(); Point size = newPoint(); display.getSize(size); width = size.x; height = size.y;
(转)Android getwidth()和getheight()已经过时使用point代替
标签:
原文地址:http://www.cnblogs.com/shen-smile/p/5434382.html