0

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.

Cœur
  • 34,719
  • 24
  • 185
  • 251
user2436032
  • 345
  • 1
  • 4
  • 13

1 Answers1

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.