How to Remove Title Bar from Activities - Andorid Tip

Public on September 1, 2015
Android Quick Tip:

Sometimes you don't want the title bar or notification bar to be a distraction. Here is how you can remove them from within your Activities#onCreate() - note: you will need to do this before setting the content view.

1
2
3
4
// Remove title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);
// Remove notification bar
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);




[Advertising]Faster Thinking - Speed up your brain


Faster Thinking Game



sentiment_satisfied Emoticon