Android中获取手机屏幕大小

代码如下:

 

   1:  Log.v("tag", "width>>"
   2:          + this.getWindow().getWindowManager().getDefaultDisplay()
   3:                  .getWidth()
   4:          + " height>>"
   5:          + this.getWindow().getWindowManager().getDefaultDisplay()
   6:                  .getHeight());
posted @ 2011-09-02 10:16  图形学小菜鸟  阅读(186)  评论(0编辑  收藏  举报