软件启动页面全屏设置

Window window = getWindow();

//设置surfaceView是全屏显示的  
  //没有标题  
  requestWindowFeature(Window.FEATURE_NO_TITLE);  
  // 设置全屏  
  window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  
                  WindowManager.LayoutParams.FLAG_FULLSCREEN);  
  //高亮  
  window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);  
  setContentView(R.layout.activity_first);

你可能感兴趣的:(软件启动页面全屏设置)