How Android hides the status bar

From , 5 Years ago, written in Java, viewed 236 times.
URL https://pastebin.vip/view/fcc7fbed
  1. package cn.edu.pku;  
  2. import android.app.Activity;  
  3. import android.os.Bundle;  
  4. import android.view.Window;  
  5. import android.view.WindowManager;  
  6. public class FrameLayoutActivity extends Activity {  
  7.     @Override  
  8.     public void onCreate(Bundle savedInstanceState) {  
  9.         super.onCreate(savedInstanceState);  
  10.      // remove title  
  11.        requestWindowFeature(Window.FEATURE_NO_TITLE);  
  12.       getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  
  13.         WindowManager.LayoutParams.FLAG_FULLSCREEN);  
  14.         setContentView(R.layout.main);  
  15.     }}  
  16. //java/6176

Reply to "How Android hides the status bar"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website