Do not use getSupportActionBar().setTitle(title);
to set the title, if you have a custom Toolbar layout.
Instead, assuming your XML layout looks like this:
You need to call, somewhere in your MainActivity
's onCreate()
probably:
((TextView) findViewById(R.id.main_toolbar_title)).setText("Title!");