摘要: 在 Activity.setContentView(); 之前调用此方法private void HideStatusBar() { // TODO Auto-generated method stub // 隐藏标题 requestWindowFeature(Window. FEATURE_NO_TITLE ); // 定义全屏参数 int flag=WindowManager.LayoutParams. FLAG_FULLSCREEN ; // 获得窗口对象 Window myWindow= this this this this .getWindow(); // 设置 Flag 标识 m 阅读全文
posted @ 2011-08-04 14:51 勇者无畏 阅读(648) 评论(0) 推荐(0) 编辑
摘要: DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);int width = dm.widthPixels;int height = dm.heightPixels; 阅读全文
posted @ 2011-08-04 14:44 勇者无畏 阅读(244) 评论(0) 推荐(0) 编辑