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
  • 37,241
  • 25
  • 195
  • 267
user2436032
  • 365
  • 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.