In the XML
of my MainActivity
, I have programmed it so that it uses a theme with NoActionBar
and therefore there is no ac
Calling this method I've created at the Dialog's onCreate()
fully resolved the problem of status bar show or show/hide.
private void hideStatusBar(Window window) {
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | WindowManager.LayoutParams.FLAG_FULLSCREEN);
}