How to remove the application header in the ToolBar , which is set by default.

  • toolbar.setTitle(" "); This is for a specific Activity . - iFr0z
  • It does not help) for some reason - T. Kudaibergen
  • Is there a space between the quotes?) Try toolbar.setTitle(null); - iFr0z
  • There is a gap between them - T. Kudaibergen
  • Here it is better to remove the space) - iFr0z

1 answer 1

In order to surely remove the title you need:

 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayShowTitleEnabled(false);