To hide the toolbar or ActionBar in Java, use the below code
getSupportActionBar().hide();
To show the toolbar or ActionBar, use this
getSupportActionBar().show();
Remember to use appropriate themes, or it might show Runtime errors.
Translate this page
To hide the toolbar or ActionBar in Java, use the below code
getSupportActionBar().hide();
To show the toolbar or ActionBar, use this
getSupportActionBar().show();
Remember to use appropriate themes, or it might show Runtime errors.