摘要: (一)获取屏幕的高度和宽度有两种方法:方法1:WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE); int width = wm.getDefaultDisplay().getWidth();int height = wm.getDefaultDisplay().getHeight();方法2:WindowManager wm = this.getWindowManager(); int width = wm.getDefaultDisplay().getWidth() 阅读全文
posted @ 2013-10-22 13:54 Michelle's Home 阅读(764) 评论(0) 推荐(0)