-1

I have created a new project with a navigation drawer activity. By default i am getting a title in the action bar as follows.

enter image description here

I want to change the "Media Lines" text and change the font and size as well. I searched entire project and couldn't find where this title is setting up. I am a beginner.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141

1 Answers1

0

If you are working on activities try this:

ActionBar actionBar = getSupportActionBar();
actionBar.setTitle("Your title goes here");
//see the other attributes for actionBar for the color and the size 

and if you are using Fragment:

((AppCompatActivity)).getSupportActionBar()).setTilte("your title");
Omer Maki
  • 519
  • 1
  • 4
  • 14