android to remove the window full screen display simple method

  • 2020-05-17 06:21:15
  • OfStack


      // Remove the window 
        requestWindowFeature(Window.FEATURE_NO_TITLE);(1 Need to put in setContentView(R.layout.main) In the front of the )
        // Full screen 
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);    
        

Related articles: