How to remove app title from toolbar?

前端 未结 7 1862
予麋鹿
予麋鹿 2020-12-29 05:28

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

getSuppor         


        
7条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 05:55

    Try this:

    getSupportActionBar().setDisplayShowTitleEnabled(false);
    

提交回复
热议问题