1@Override
2protected void onCreate(Bundle savedInstanceState) {
3 super.onCreate(savedInstanceState);
4
5 try
6 {
7 this.getSupportActionBar().hide();
8 }
9 catch (NullPointerException e){}
10
11 setContentView(R.layout.activity_main);
12}
1requestWindowFeature(Window.FEATURE_NO_TITLE);
2getSupportActionBar().hide();
3this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
4 WindowManager.LayoutParams.FLAG_FULLSCREEN);
5setContentView(R.layout.activity_main);
1change
2<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
3to
4<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">