Is there some good way to disable the status bar ? I have found out a solution in the answer of this question Permanently hide Android Status Bar . But it seems to be a hacky way. Is there some normal way to disable status bar.
Asked
Active
Viewed 61 times
1 Answers
0
Write this before your setContentView() call:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(layout);
This will make a fullscreen acitivity.

Nacho Ramos Sánchez
- 564
- 4
- 21
-
But it will just hide the status bar , it wont disable it .. I want to disable the status bar completely – user2436032 May 29 '15 at 09:41