hide title bar android

Solutions on MaxInterview for hide title bar android by the best coders in the world

showing results for - "hide title bar android"
Doug
24 Jan 2020
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}
Michele
14 Jan 2020
1<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" />
Emiliano
21 May 2016
1getSupportActionBar().hide();
2
Timothée
11 Jan 2021
1requestWindowFeature(Window.FEATURE_NO_TITLE);
2getSupportActionBar().hide();
3this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  
4               			  WindowManager.LayoutParams.FLAG_FULLSCREEN);
5setContentView(R.layout.activity_main);  
Vivian
11 Jun 2016
1change
2<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
3to
4<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
Helena
20 Oct 2020
1getSupportActionBar().hide();
similar questions
queries leading to this page
hide title bar android