I added an action bar with a dropdown menu to my activity but it also shows the application name.
Each of my activities has an action bar and each of them use the th
Can be done with a nice one liner
getActionBar().setDisplayShowTitleEnabled(false)
this will hide just the title. If you also want to hide the home logo
getActionBar().setDisplayShowHomeEnabled(false);
When using the AppCompat Support library, you should replace getActionBar() with getSupportActionBar(). It is also suggested that you check if the ActionBar is null before changing values on it.
ActionBar actionBar = getSupportActionBar()
if (actionBar != null) {
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayShowHomeEnabled(false);
}