In my code I write:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.setContentView(R.layout.activity_main);
I've written all of it before the setContentView()
call is made but it doesn't work.
I've already used the theme in android studio to remove the title bar and set the app to fullscreen but nothing changed.
How can I remove or hide the title bar that shows by default, when developing an android app?