How to change the text on the action bar

前端 未结 18 985
春和景丽
春和景丽 2020-11-22 12:30

Currently it just displays the name of the application and I want it to display something custom and be different for each screen in my app.

For example: my home scr

18条回答
  •  情深已故
    2020-11-22 13:09

    Little bit older but had the same problem. I did it like this:

    strings.xml

    My Awesome App

    and make sure you set this in your AndroidManifest.xml:

    
                ...
    
    

    it's easy and you don't have to worry about null-references and other stuff.

提交回复
热议问题