Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 725
khawar Avatar asked May 13 '15 13:05

khawar


People also ask

Which of the following method must be called to hide the title bar?

Hide Title Bar using Java code To do that you need to call the requestWindowFeature(Window. FEATURE_NO_TITLE) method of an Activity. But you need to call this before the setContentView( ) method of an Activity.


1 Answers

In Kotlin you can use:

supportActionBar?.setDisplayShowTitleEnabled(false)

The "?" is important because you can have the whole title bar disabled already because you try to set a a not existing title bar's title status to false.

like image 77
mOOn Avatar answered Oct 09 '22 15:10

mOOn