Can be done with a nice one liner
getActionBar().setDisplayShowTitleEnabled(false)
this will hide only the title. If you also want to hide the home logo
getActionBar().setDisplayShowHomeEnabled(false);
When using the AppCompat support library, you must replace getActionBar() with getSupportActionBar() . It is also suggested to check if the ActionBar is null before changing the values ββon it.
ActionBar actionBar = getSupportActionBar() if (actionBar != null) { actionBar.setDisplayShowTitleEnabled(false); actionBar.setDisplayShowHomeEnabled(false); }
drees
source share