Juanma Crescente
Juanma Crescente

Reputation: 7

How to remove activity title in android studio?

I'm trying to remove the title (in red in the picture) from my activity with no luck.

Until now I have tried:

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);

And this

<item name="android:windowNoTitle">true</item>
<!-- Hides the Action Bar -->
<item name="android:windowFullscreen">true</item>
<item name="android:windowActionBar">false</item>

The image is next

https://i.sstatic.net/SpMfE.png

Also I want to know the name of that title bar

Upvotes: 0

Views: 1717

Answers (1)

Gunaseelan
Gunaseelan

Reputation: 15535

Try to use

getActionBar().hide(); 

in your activity, if you are using ActionBarCompat support file,

getSupportActionBar().hide();

I hope this will help you.

Upvotes: 1

Related Questions