samedi 27 juin 2015

How to remove app title from toolbar?

I can't figure out how to remove my title. I've use the code below in my MainActivity but after I add that line my app crashes.

getSupportActionBar().setDisplayShowTitleEnabled(false);

Here is how my MainActivity looks

Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar);

Aucun commentaire:

Enregistrer un commentaire