一、full screen or no title bar
设置fullscreen
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
设置no title bar
- requestWindowFeature(Window.FEATURE_NO_TITLE);
这句必须使用在setContentView之前。