cdwxb

在 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 标识
   myWindow.setFlags(flag,flag);
}

 

分类:

技术点:

相关文章:

  • 2021-09-22
  • 2022-02-07
  • 2021-10-09
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2021-07-23
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案