Reputation: 7
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
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