Android中获取手机屏幕大小

代码如下:

   1:  Log.v("tag", "width>>"
   2:          + this.getWindow().getWindowManager().getDefaultDisplay()
   3:                  .getWidth()
   4:          + " height>>"
   5:          + this.getWindow().getWindowManager().getDefaultDisplay()
   6:                  .getHeight());
原文地址:https://www.cnblogs.com/yangzhenyu/p/2163400.html