Search code examples
androidandroid-studioandroid-actionbar

How to hide app name from title bar in Android?


My app is showing name and icon. I want to hide name.

How i can do that?

enter image description here


Solution

  • You have to call `

    getSupportActionBar().setDisplayShowTitleEnabled(false) - to hide it,

    or

    getSupportActionBar().setTitle("new title"); - if you want to change it