Remove title in Toolbar in appcompat-v7

timemanx picture timemanx · Oct 30, 2014 · Viewed 131.2k times · Source

The documentation of Toolbar says

If an app uses a logo image it should strongly consider omitting a title and subtitle.

What is the proper way to remove the title?

Answer

massaimara98 picture massaimara98 · Nov 2, 2014
getSupportActionBar().setDisplayShowTitleEnabled(false);